Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. //
  2. // CEnumPackage Class Definition
  3. //
  4. class CEnumPackage: public IEnumPackage
  5. {
  6. private:
  7. ULONG m_dwRefCount;
  8. WCHAR * m_szfilter;
  9. WCHAR m_szPackageName[_MAX_PATH];
  10. DWORD m_dwPosition;
  11. DWORD m_dwAppFlags;
  12. CSPLATFORM * m_pPlatform;
  13. HANDLE m_hADs;
  14. ADS_SEARCH_HANDLE m_hADsSearchHandle;
  15. BOOL m_fFirst;
  16. GUID m_PolicyId;
  17. WCHAR m_szPolicyName[_MAX_PATH];
  18. public:
  19. CEnumPackage();
  20. CEnumPackage(GUID PolicyId, LPOLESTR pszPolicyName);
  21. ~CEnumPackage();
  22. HRESULT __stdcall QueryInterface(
  23. REFIID riid,
  24. void ** ppvObject);
  25. ULONG __stdcall AddRef();
  26. ULONG __stdcall Release();
  27. HRESULT __stdcall Next(
  28. ULONG celt,
  29. PACKAGEDISPINFO *rgelt,
  30. ULONG *pceltFetched);
  31. HRESULT __stdcall Skip(
  32. ULONG celt);
  33. HRESULT __stdcall Reset();
  34. HRESULT __stdcall Clone(
  35. IEnumPackage **ppenum);
  36. HRESULT __stdcall Initialize(
  37. LPOLESTR szPackageName,
  38. LPOLESTR szCommandText,
  39. DWORD dwAppFlags,
  40. CSPLATFORM *pPlatform
  41. );
  42. };