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.

33 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1999
  5. //
  6. // File: MyBasePathsInfo.h
  7. //
  8. // Contents: Thin wrapper around dsadminlib CDSBasePathsInfo class
  9. // to deal with memory management of strings
  10. //
  11. // History: 04/02/2001 jeffjon Created
  12. //
  13. //--------------------------------------------------------------------------
  14. class MyBasePathsInfo : public CDSBasePathsInfo
  15. {
  16. public:
  17. // Functions from the base class that are wrapped to take references to
  18. // CStrings
  19. void ComposeADsIPath(CString& szPath, IN LPCWSTR lpszNamingContext);
  20. void GetSchemaPath(CString& s);
  21. void GetConfigPath(CString& s);
  22. void GetDefaultRootPath(CString& s);
  23. void GetRootDSEPath(CString& s);
  24. void GetAbstractSchemaPath(CString& s);
  25. void GetPartitionsPath(CString& s);
  26. void GetSchemaObjectPath(IN LPCWSTR lpszObjClass, CString& s);
  27. void GetInfrastructureObjectPath(CString& s);
  28. };
  29. HRESULT GetADSIServerName(CString& szServer, IN IUnknown* pUnk);