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.

66 lines
1.5 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1997
  5. //
  6. // File: cenumt.hxx
  7. //
  8. // Contents: IIS Object Enumeration Code
  9. //
  10. // History: 25-Feb-97 SophiaC Created.
  11. //----------------------------------------------------------------------------
  12. class FAR CIISTreeEnum : public CIISEnumVariant
  13. {
  14. public:
  15. CIISTreeEnum(ObjectTypeList ObjList);
  16. CIISTreeEnum();
  17. ~CIISTreeEnum();
  18. HRESULT
  19. EnumObjects(
  20. ULONG cElements,
  21. VARIANT FAR * pvar,
  22. ULONG FAR * pcElementFetched
  23. );
  24. static
  25. HRESULT
  26. CIISTreeEnum::Create(
  27. CIISTreeEnum FAR* FAR* ppenumvariant,
  28. BSTR ADsPath,
  29. VARIANT var,
  30. CCredentials& Credentials
  31. );
  32. private:
  33. DWORD _dwObjectCurrentEntry;
  34. BSTR _ADsPath;
  35. CCredentials _Credentials;
  36. IMSAdminBase *_pAdminBase; //interface pointer
  37. IIsSchema *_pSchema;
  38. LPWSTR _pszServerName;
  39. LPWSTR _pszMetaBasePath;
  40. HRESULT
  41. CIISTreeEnum::GetGenericObject(
  42. IDispatch ** ppDispatch
  43. );
  44. HRESULT
  45. EnumGenericObjects(
  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. };