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.

63 lines
1.5 KiB

  1. class FAR CWinNTUserGroupsCollectionEnum : public CWinNTEnumVariant
  2. {
  3. public:
  4. CWinNTUserGroupsCollectionEnum();
  5. ~CWinNTUserGroupsCollectionEnum();
  6. static
  7. HRESULT
  8. CWinNTUserGroupsCollectionEnum::Create(
  9. CWinNTUserGroupsCollectionEnum FAR* FAR* ppenumvariant,
  10. ULONG ParentType,
  11. BSTR ParentADsPath,
  12. BSTR DomainName,
  13. BSTR ServerName,
  14. BSTR UserName,
  15. VARIANT vFilter,
  16. CWinNTCredentials& Credentials
  17. );
  18. STDMETHOD(Reset)();
  19. STDMETHOD(Skip)(ULONG cElements);
  20. STDMETHOD(Next)(ULONG cElements,
  21. VARIANT FAR* pvar,
  22. ULONG FAR* pcElementFetched);
  23. private:
  24. CWinNTCredentials _Credentials;
  25. ULONG _ParentType;
  26. BSTR _ParentADsPath;
  27. BSTR _DomainName;
  28. BSTR _ServerName;
  29. BSTR _UserName;
  30. VARIANT _vFilter;
  31. LPVOID _pGlobalBuffer;
  32. LPVOID _pLocalBuffer;
  33. DWORD _dwCurrent;
  34. DWORD _dwTotal;
  35. DWORD _dwGlobalTotal;
  36. DWORD _dwLocalTotal;
  37. BOOL _fIsDomainController;
  38. HRESULT
  39. CWinNTUserGroupsCollectionEnum::DoEnumeration();
  40. HRESULT
  41. CWinNTUserGroupsCollectionEnum::DoGlobalEnumeration();
  42. HRESULT
  43. CWinNTUserGroupsCollectionEnum::DoLocalEnumeration();
  44. HRESULT
  45. CWinNTUserGroupsCollectionEnum::EnumUserGroups(
  46. ULONG cElements,
  47. VARIANT FAR* pvar,
  48. ULONG FAR* pcElementFetched
  49. );
  50. HRESULT
  51. CWinNTUserGroupsCollectionEnum::GetNextUserGroup(
  52. IDispatch ** ppDispatch
  53. );
  54. };