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.

80 lines
1.4 KiB

  1. class CNDSTree;
  2. class CNDSTree : INHERIT_TRACKING,
  3. public CCoreADsObject,
  4. public ISupportErrorInfo,
  5. public IADs,
  6. public IADsContainer
  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. CNDSTree::CNDSTree();
  17. CNDSTree::~CNDSTree();
  18. static
  19. HRESULT
  20. CNDSTree::CreateTreeObject(
  21. BSTR bstrADsPath,
  22. CCredentials& Credentials,
  23. DWORD dwObjectState,
  24. REFIID riid,
  25. void **ppvObj
  26. );
  27. static
  28. HRESULT
  29. CNDSTree::CreateTreeObject(
  30. BSTR Parent,
  31. BSTR CommonName,
  32. BSTR ClassName,
  33. CCredentials& Credentials,
  34. DWORD dwObjectState,
  35. REFIID riid,
  36. void **ppvObj
  37. );
  38. static
  39. HRESULT
  40. CNDSTree::AllocateTree(
  41. CCredentials& Credentials,
  42. CNDSTree ** ppTree
  43. );
  44. STDMETHOD(GetInfo)(
  45. BOOL fExplicit
  46. );
  47. HRESULT
  48. CNDSTree::NDSSetObject();
  49. HRESULT
  50. CNDSTree::NDSCreateObject();
  51. protected:
  52. VARIANT _vFilter;
  53. CPropertyCache FAR * _pPropertyCache;
  54. CDispatchMgr FAR * _pDispMgr;
  55. CCredentials _Credentials;
  56. };