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.

89 lines
1.4 KiB

  1. class CNDSTree;
  2. class CNDSTree : INHERIT_TRACKING,
  3. public CCoreADsObject,
  4. public IADs,
  5. public IADsContainer
  6. {
  7. public:
  8. /* IUnknown methods */
  9. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  10. DECLARE_STD_REFCOUNTING
  11. DECLARE_IDispatch_METHODS
  12. DECLARE_IADs_METHODS
  13. DECLARE_IADsContainer_METHODS
  14. CNDSTree::CNDSTree();
  15. CNDSTree::~CNDSTree();
  16. static
  17. HRESULT
  18. CNDSTree::CreateTreeObject(
  19. BSTR bstrADsPath,
  20. CCredentials& Credentials,
  21. DWORD dwObjectState,
  22. REFIID riid,
  23. void **ppvObj
  24. );
  25. static
  26. HRESULT
  27. CNDSTree::CreateTreeObject(
  28. BSTR Parent,
  29. BSTR CommonName,
  30. BSTR ClassName,
  31. CCredentials& Credentials,
  32. DWORD dwObjectState,
  33. REFIID riid,
  34. void **ppvObj
  35. );
  36. static
  37. HRESULT
  38. CNDSTree::AllocateTree(
  39. CCredentials& Credentials,
  40. CNDSTree ** ppTree
  41. );
  42. STDMETHOD(GetInfo)(
  43. BOOL fExplicit
  44. );
  45. HRESULT
  46. CNDSTree::NDSSetObject();
  47. HRESULT
  48. CNDSTree::NDSCreateObject();
  49. protected:
  50. VARIANT _vFilter;
  51. CPropertyCache FAR * _pPropertyCache;
  52. CDispatchMgr FAR * _pDispMgr;
  53. CCredentials _Credentials;
  54. NDS_CONTEXT_HANDLE _hADsContext;
  55. LPWSTR _pszNDSTreeName;
  56. LPWSTR _pszNDSDn;
  57. };