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.

86 lines
1.4 KiB

  1. class FAR CNDSGroupCollectionEnum : public CNDSEnumVariant
  2. {
  3. public:
  4. CNDSGroupCollectionEnum();
  5. ~CNDSGroupCollectionEnum();
  6. static
  7. HRESULT
  8. CNDSGroupCollectionEnum::Create(
  9. BSTR bstrGroupName,
  10. CCredentials& Credentials,
  11. CNDSGroupCollectionEnum FAR* FAR* ppenumvariant,
  12. VARIANT var
  13. );
  14. private:
  15. VARIANT _vMembers;
  16. BSTR _bstrGroupName;
  17. DWORD _dwIndex;
  18. DWORD _dwSUBound;
  19. DWORD _dwSLBound;
  20. DWORD _dwMultiple;
  21. CCredentials _Credentials;
  22. HRESULT
  23. CNDSGroupCollectionEnum::ValidateSingleVariant(
  24. VARIANT var
  25. );
  26. HRESULT
  27. CNDSGroupCollectionEnum::ValidateMultipleVariant(
  28. VARIANT var
  29. );
  30. HRESULT
  31. CNDSGroupCollectionEnum::ValidateVariant(
  32. VARIANT var
  33. );
  34. HRESULT
  35. CNDSGroupCollectionEnum::GetGroupMultipleMemberObject(
  36. IDispatch ** ppDispatch
  37. );
  38. HRESULT
  39. CNDSGroupCollectionEnum::GetGroupSingleMemberObject(
  40. IDispatch ** ppDispatch
  41. );
  42. HRESULT
  43. CNDSGroupCollectionEnum::EnumGroupMembers(
  44. ULONG cElements,
  45. VARIANT FAR* pvar,
  46. ULONG FAR* pcElementFetched
  47. );
  48. STDMETHOD(Next)(
  49. ULONG cElements,
  50. VARIANT FAR* pvar,
  51. ULONG FAR* pcElementFetched
  52. );
  53. };
  54. #define EMPTY 1
  55. #define SINGLE 2
  56. #define MULTIPLE 3