Leaked source code of windows server 2003
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.

94 lines
1.6 KiB

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