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.

79 lines
1.7 KiB

  1. #define COMPUTER_OrganizationUnit 1
  2. #define DOMAIN_OrganizationUnit 2
  3. class CNDSOrganizationUnit;
  4. class CNDSOrganizationUnit : INHERIT_TRACKING,
  5. public ISupportErrorInfo,
  6. public IADsOU,
  7. public IADsContainer,
  8. public IDirectoryObject,
  9. public IDirectorySearch,
  10. public IDirectorySchemaMgmt,
  11. public IADsPropertyList
  12. {
  13. public:
  14. /* IUnknown methods */
  15. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  16. DECLARE_STD_REFCOUNTING
  17. DECLARE_IDispatch_METHODS
  18. DECLARE_ISupportErrorInfo_METHODS
  19. DECLARE_IADs_METHODS
  20. DECLARE_IDirectoryObject_METHODS
  21. DECLARE_IDirectorySearch_METHODS
  22. DECLARE_IDirectorySchemaMgmt_METHODS
  23. DECLARE_IADsOU_METHODS
  24. DECLARE_IADsContainer_METHODS
  25. DECLARE_IADsPropertyList_METHODS
  26. CNDSOrganizationUnit::CNDSOrganizationUnit();
  27. CNDSOrganizationUnit::~CNDSOrganizationUnit();
  28. static
  29. HRESULT
  30. CNDSOrganizationUnit::CreateOrganizationUnit(
  31. IADs *pADs,
  32. REFIID riid,
  33. void **ppvObj
  34. );
  35. static
  36. HRESULT
  37. CNDSOrganizationUnit::AllocateOrganizationUnitObject(
  38. IADs * pADs,
  39. CNDSOrganizationUnit ** ppOrganizationUnit
  40. );
  41. protected:
  42. IADs FAR * _pADs;
  43. IDirectoryObject FAR * _pDSObject;
  44. IDirectorySearch FAR * _pDSSearch;
  45. IDirectorySchemaMgmt FAR * _pDSSchemaMgmt;
  46. IADsContainer FAR * _pADsContainer;
  47. IADsPropertyList FAR * _pADsPropList;
  48. CDispatchMgr FAR * _pDispMgr;
  49. };
  50. 
  51.