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.

84 lines
1.6 KiB

  1. class CLDAPRootDSE : INHERIT_TRACKING,
  2. public CCoreADsObject,
  3. public ISupportErrorInfo,
  4. public IADs,
  5. public IADsPropertyList,
  6. public IGetAttributeSyntax,
  7. public IADsObjectOptions
  8. {
  9. public:
  10. /* IUnknown methods */
  11. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  12. DECLARE_STD_REFCOUNTING
  13. DECLARE_IDispatch_METHODS
  14. DECLARE_ISupportErrorInfo_METHODS
  15. DECLARE_IADs_METHODS
  16. DECLARE_IADsPropertyList_METHODS
  17. DECLARE_IGetAttributeSyntax_METHODS
  18. DECLARE_IADsObjectOptions_METHODS
  19. CLDAPRootDSE::CLDAPRootDSE();
  20. CLDAPRootDSE::~CLDAPRootDSE();
  21. static
  22. HRESULT
  23. CLDAPRootDSE::CreateRootDSE(
  24. BSTR Parent,
  25. BSTR CommonName,
  26. BSTR LdapClassName,
  27. CCredentials& Credentials,
  28. DWORD dwObjectState,
  29. REFIID riid,
  30. void **ppvObj
  31. );
  32. static
  33. HRESULT
  34. CLDAPRootDSE::AllocateGenObject(
  35. CCredentials& Credentials,
  36. CLDAPRootDSE ** ppGenObject
  37. );
  38. STDMETHOD(GetInfo)(
  39. DWORD dwFlags
  40. );
  41. STDMETHOD(GetInfo)(
  42. LPWSTR szPropertyName,
  43. DWORD dwSyntaxId,
  44. BOOL fExplicit
  45. );
  46. HRESULT
  47. CLDAPRootDSE::LDAPSetObject();
  48. protected:
  49. VARIANT _vFilter;
  50. VARIANT _vHints;
  51. CPropertyCache FAR * _pPropertyCache;
  52. CAggregatorDispMgr FAR * _pDispMgr;
  53. LPWSTR _pszLDAPServer;
  54. LPWSTR _pszLDAPDn;
  55. PADSLDP _pLdapHandle;
  56. CCredentials _Credentials;
  57. DWORD _dwPort;
  58. };