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.

42 lines
1.9 KiB

  1. #pragma once
  2. #include <windows.h>
  3. #include <stdio.h>
  4. #include <string>
  5. #include <vector>
  6. #include <oledberr.h>
  7. #include "scp.h"
  8. class CUDDIServiceCxnPtPublisher : public std::vector<CUDDIServiceCxnPt*>
  9. {
  10. public:
  11. CUDDIServiceCxnPtPublisher(
  12. const std::wstring& strConnectionString,
  13. const std::wstring& strSiteKey = L"",
  14. const std::wstring& strSiteName = L"",
  15. const std::wstring& strDefaultDiscoveryUrl = L"" );
  16. ~CUDDIServiceCxnPtPublisher();
  17. void GetSiteInfo();
  18. void ProcessSite();
  19. void DeleteSiteContainer();
  20. void CreateSiteContainer();
  21. void PublishServiceCxnPts( IDirectoryObject *pDirObject = NULL );
  22. std::wstring StripBraces( LPWSTR szKey );
  23. private:
  24. void ProcessBinding( const std::wstring& strBindingKey, const std::wstring& strAccessPoint );
  25. void AddInquireScp( const std::wstring& strBindingKey, const std::wstring& strAccessPoint, const std::wstring& strTModelKey, const std::wstring& strAuthenticationKey, const std::wstring& strAuthenticationVerb );
  26. void AddPublishScp( const std::wstring& strBindingKey, const std::wstring& strAccessPoint, const std::wstring& strTModelKey, const std::wstring& strAuthenticationKey, const std::wstring& strAuthenticationVerb );
  27. void AddAddWebReferenceScp( const std::wstring& strBindingKey, const std::wstring& strAccessPoint, const std::wstring& strTModelKey, const std::wstring& strAuthenticationKey, const std::wstring& strAuthenticationVerb );
  28. void AddWebSiteScp( const std::wstring& strBindingKey, const std::wstring& strAccessPoint, const std::wstring& strTModelKey, const std::wstring& strAuthenticationKey, const std::wstring& strAuthenticationVerb );
  29. void AddDiscoveryUrlScp();
  30. CUDDIServiceCxnPtPublisher();
  31. std::wstring m_strSiteKey;
  32. std::wstring m_strSiteName;
  33. std::wstring m_strDefaultDiscoveryUrl;
  34. std::wstring m_strConnectionString;
  35. CComPtr<IDirectoryObject> m_pSiteContainer;
  36. };