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.

62 lines
1.2 KiB

  1. class CADsNamespaces;
  2. class CADsNamespaces : INHERIT_TRACKING,
  3. public CCoreADsObject,
  4. public ISupportErrorInfo,
  5. public IADsContainer,
  6. public IADsNamespaces
  7. {
  8. public:
  9. /* IUnknown methods */
  10. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  11. DECLARE_STD_REFCOUNTING
  12. DECLARE_IDispatch_METHODS
  13. DECLARE_ISupportErrorInfo_METHODS
  14. DECLARE_IADs_METHODS
  15. DECLARE_IADsContainer_METHODS
  16. DECLARE_IADsNamespaces_METHODS
  17. CADsNamespaces::CADsNamespaces();
  18. CADsNamespaces::~CADsNamespaces();
  19. static
  20. HRESULT
  21. CADsNamespaces::CreateNamespaces(
  22. BSTR Parent,
  23. BSTR NamespacesName,
  24. DWORD dwObjectState,
  25. REFIID riid,
  26. void **ppvObj
  27. );
  28. static
  29. HRESULT
  30. CADsNamespaces::AllocateNamespacesObject(
  31. CADsNamespaces ** ppNamespaces
  32. );
  33. protected:
  34. VARIANT _vFilter;
  35. BSTR _bstrDefaultContainer;
  36. CDispatchMgr *_pDispMgr;
  37. };
  38. //
  39. // Location to put DefaultContainer
  40. //
  41. #define DEF_CONT_REG_LOCATION TEXT("Software\\Microsoft\\ADs")