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.

78 lines
2.3 KiB

  1. #pragma once
  2. #ifndef _WIN32_WINNT
  3. #define _WIN32_WINNT 0x0500
  4. #endif
  5. #define SECURITY_WIN32
  6. #include <atlbase.h>
  7. #include <iads.h>
  8. #include <adshlp.h>
  9. #include <security.h>
  10. #include <activeds.h>
  11. #include <windows.h>
  12. #include <string>
  13. #include <vector>
  14. #include <map>
  15. class CUDDIServiceCxnPt
  16. {
  17. public:
  18. CUDDIServiceCxnPt( LPWSTR szName, LPWSTR szClassName );
  19. void AddDefaultKeywords();
  20. void Create( IDirectoryObject* pDirObject );
  21. static void CreateSiteContainer( LPWSTR pszName, LPWSTR pszDisplayName, IDirectoryObject** ppContainer );
  22. static void CreateContainer( IDirectoryObject* pObj, LPWSTR szName, IDirectoryObject** ppContainer );
  23. static void DeleteSiteContainer( LPWSTR pszName, BOOL bFailIfNotThere = FALSE );
  24. static LPWSTR GetRootDSE();
  25. std::vector<std::wstring> keywords;
  26. std::map<std::wstring, std::wstring> attributes;
  27. const static LPWSTR UDDI_KEYWORD;
  28. const static LPWSTR UDDI_VERSION_KEYWORD;
  29. const static LPWSTR VENDOR_KEYWORD;
  30. const static LPWSTR VENDOR_GUID_KEYWORD;
  31. const static LPWSTR PRODUCT_KEYWORD;
  32. const static LPWSTR PRODUCT_GUID_KEYWORD;
  33. const static LPWSTR DISCOVERY_URL_KEYWORD;
  34. const static LPWSTR DISCOVERYURL_GUID_KEYWORD;
  35. const static LPWSTR DISCOVERYURL_SERVICE_CLASS_NAME;
  36. const static LPWSTR PUBLISH_KEYWORD;
  37. const static LPWSTR PUBLISH_GUID_KEYWORD;
  38. const static LPWSTR PUBLISH_SERVICE_CLASSNAME;
  39. const static LPWSTR PUBLISH_KEY_V2;
  40. const static LPWSTR INQUIRE_KEYWORD;
  41. const static LPWSTR INQUIRE_GUID_KEYWORD;
  42. const static LPWSTR INQUIRE_SERVICE_CLASS_NAME;
  43. const static LPWSTR INQUIRE_KEY_V2;
  44. const static LPWSTR ADD_WEB_REFERENCE_KEYWORD;
  45. const static LPWSTR ADD_WEB_REFERENCE_GUID_KEYWORD;
  46. const static LPWSTR ADD_WEB_REFERENCE_SERVICE_CLASS_NAME;
  47. const static LPWSTR WEB_SITE_KEYWORD;
  48. const static LPWSTR WEB_SITE_GUID_KEYWORD;
  49. const static LPWSTR WEB_SITE_SERVICE_CLASS_NAME;
  50. const static LPWSTR WINDOWS_AUTHENTICATION_KEYWORD;
  51. const static LPWSTR WINDOWS_AUTHENTICATION_GUID_KEYWORD;
  52. const static LPWSTR UDDI_AUTHENTICATION_KEYWORD;
  53. const static LPWSTR UDDI_AUTHENTICATION_GUID_KEYWORD;
  54. const static LPWSTR ANONYMOUS_AUTHENTICATION_KEYWORD;
  55. const static LPWSTR ANONYMOUS_AUTHENTICATION_GUID_KEYWORD;
  56. private:
  57. CUDDIServiceCxnPt();
  58. std::wstring strName;
  59. std::wstring strClassName;
  60. static std::wstring strRootDSE;
  61. };