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.

89 lines
1.5 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. VARIANT varFilter
  14. );
  15. private:
  16. VARIANT _vMembers;
  17. ObjectTypeList *_pObjList;
  18. BSTR _bstrGroupName;
  19. DWORD _dwIndex;
  20. DWORD _dwSUBound;
  21. DWORD _dwSLBound;
  22. DWORD _dwMultiple;
  23. CCredentials _Credentials;
  24. HRESULT
  25. CNDSGroupCollectionEnum::ValidateSingleVariant(
  26. VARIANT var
  27. );
  28. HRESULT
  29. CNDSGroupCollectionEnum::ValidateMultipleVariant(
  30. VARIANT var
  31. );
  32. HRESULT
  33. CNDSGroupCollectionEnum::ValidateVariant(
  34. VARIANT var
  35. );
  36. HRESULT
  37. CNDSGroupCollectionEnum::GetGroupMultipleMemberObject(
  38. IDispatch ** ppDispatch
  39. );
  40. HRESULT
  41. CNDSGroupCollectionEnum::GetGroupSingleMemberObject(
  42. IDispatch ** ppDispatch
  43. );
  44. HRESULT
  45. CNDSGroupCollectionEnum::EnumGroupMembers(
  46. ULONG cElements,
  47. VARIANT FAR* pvar,
  48. ULONG FAR* pcElementFetched
  49. );
  50. STDMETHOD(Next)(
  51. ULONG cElements,
  52. VARIANT FAR* pvar,
  53. ULONG FAR* pcElementFetched
  54. );
  55. };
  56. #define EMPTY 1
  57. #define SINGLE 2
  58. #define MULTIPLE 3