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.

162 lines
6.1 KiB

  1. #pragma once
  2. //#include <commctrl.h>
  3. #include <mmc.h>
  4. #include <tchar.h>
  5. #include <iostream>
  6. #include <sstream>
  7. #ifndef STRINGS_ONLY
  8. enum UPDATE_VIEWS_HINT {UPDATE_SCOPEITEM = 1000, DELETE_SCOPEITEM, UPDATE_RESULTITEM, DELETE_RESULTITEM};
  9. enum ITEM_TYPE {SCOPE = 10, RESULT};
  10. #define IDM_BUTTON1 0x100
  11. #define IDM_BUTTON2 0x101
  12. extern HINSTANCE g_hinst;
  13. extern ULONG g_uObjects;
  14. #define OBJECT_CREATED InterlockedIncrement( (long *) &g_uObjects );
  15. #define OBJECT_DESTROYED InterlockedDecrement( (long *) &g_uObjects );
  16. //
  17. // Uncomment the following #define to enable message cracking
  18. //
  19. //#define MMC_CRACK_MESSAGES
  20. void MMCN_Crack(
  21. BOOL bComponentData,
  22. IDataObject *pDataObject,
  23. IComponentData *pCompData,
  24. IComponent *pComp,
  25. MMC_NOTIFY_TYPE event,
  26. LPARAM arg,
  27. LPARAM param );
  28. #endif
  29. #define ARRAYLEN(x) (sizeof(x) / sizeof((x)[0]))
  30. #define DEBUG_ENTER \
  31. OutputDebugString( _T("Entering ") ); \
  32. OutputDebugString( _T(__FUNCTION__) ); \
  33. OutputDebugString( _T("...\n") );
  34. #define DEBUG_LEAVE \
  35. OutputDebugString( _T("...Leaving ") ); \
  36. OutputDebugString( _T(__FUNCTION__) ); \
  37. OutputDebugString( _T("\n") );
  38. #ifdef UNICODE
  39. #define tstring wstring
  40. #define tstringstream wstringstream
  41. #else
  42. #define tstring string
  43. #define tstringstream stringstream
  44. #endif
  45. //
  46. // Convert wszBuf to upper case in-place (ie, modify the existing string).
  47. //
  48. void ToUpper( WCHAR *wszBuf );
  49. //
  50. // Convert wszBuf to lower case in-place (ie, modify the existing string).
  51. //
  52. void ToLower( WCHAR *wszBuf );
  53. struct PropertyPages
  54. {
  55. DWORD id;
  56. DLGPROC dlgproc;
  57. };
  58. class CDelegationBase;
  59. struct DatabaseData
  60. {
  61. CDelegationBase* pBase;
  62. TCHAR szServerName[ 256 ];
  63. TCHAR szInstanceName[ 256 ];
  64. };
  65. LPCTSTR InstanceDisplayName( LPCTSTR szName );
  66. LPCTSTR InstanceRealName( LPCTSTR szName );
  67. _TCHAR* DefaultInstanceDisplayName();
  68. HRESULT IsStandardServer( LPCTSTR szRemoteServer, BOOL *bResult );
  69. #define UDDI_SNAPIN_VERSION _T( "1.0" )
  70. #define UDDI_RUN _T( "Run" )
  71. #define UDDI_AUTHENTICATION_MODE _T( "Security.AuthenticationMode" )
  72. #define UDDI_REQUIRE_SSL _T( "Security.HTTPS" )
  73. #define UDDI_ADMIN_GROUP _T( "GroupName.Administrators" )
  74. #define UDDI_COORDINATOR_GROUP _T( "GroupName.Coordinators" )
  75. #define UDDI_PUBLISHER_GROUP _T( "GroupName.Publishers" )
  76. #define UDDI_USER_GROUP _T( "GroupName.Users" )
  77. #define UDDI_TICKET_TIMEOUT _T( "Security.Timeout" )
  78. #define UDDI_KEY_TIMEOUT _T( "Security.KeyTimeout" )
  79. #define UDDI_KEY_RESET_DATE _T( "Security.KeyLastResetDate" )
  80. #define UDDI_KEY_AUTORESET _T( "Security.KeyAutoReset" )
  81. #define UDDI_DISCOVERY_URL _T( "DefaultDiscoveryURL" )
  82. #define UDDI_FIND_MAXROWS _T( "Find.MaxRowsDefault" )
  83. #define UDDI_READER_CXN _T( "Database.ReaderConnectionString" )
  84. #define UDDI_WRITER_CXN _T( "Database.WriterConnectionString" )
  85. #define UDDI_EVENTLOG_LEVEL _T( "Debug.EventLogLevel" )
  86. #define UDDI_FILELOG_LEVEL _T( "Debug.FileLogLevel" )
  87. #define UDDI_LOG_FILENAME _T( "Debug.LogFilename" )
  88. #define UDDI_SETUP_DB _T( "Setup.DBServer" )
  89. #define UDDI_SETUP_WEB _T( "Setup.WebServer" )
  90. #define UDDI_SETUP_ADMIN _T( "Setup.Admin" )
  91. #define UDDI_SETUP_DATE _T( "Setup.Date" )
  92. #define UDDI_SETUP_LANGUAGE _T( "Setup.Language" )
  93. #define UDDI_SETUP_NAME _T( "Setup.Name" )
  94. #define UDDI_SETUP_FRAMEWORK_VERSION _T( "Setup.FrameworkVersion" )
  95. #define UDDI_SETUP_MANUFACTURER _T( "Setup.Manufacturer" )
  96. #define UDDI_SETUP_VERSION _T( "Setup.Version" )
  97. #define UDDI_SETUP_LOCATION _T( "Setup.TargetDir" )
  98. #define UDDI_SITE_KEY _T( "Site.Key" )
  99. #define UDDI_SITE_NAME _T( "Site.Name" )
  100. #define UDDI_SITE_DESCRIPTION _T( "Site.Description" )
  101. #define UDDI_DBSCHEMA_VERSION _T( "Database.Version" )
  102. #define UDDI_SITE_WEBSERVERS _T( "Site.WebServers" )
  103. //#define UDDI_SITE_WEBSERVERS _T( "Site.Readers" )
  104. //#define UDDI_SITE_WEBSERVERS _T( "Site.Writers" )
  105. const LPCTSTR UDDI_OPERATOR_NAME = _T("Operator");
  106. const LPCTSTR g_szMMCBasePath = _T("Software\\Microsoft\\MMC");
  107. const LPCTSTR g_szSnapins = _T("Snapins");
  108. const LPCTSTR g_szNameString = _T("NameString");
  109. const LPCTSTR g_szNameStringInd = _T("NameStringIndirect");
  110. const LPCTSTR g_szProvider = _T("Provider");
  111. const LPCTSTR g_szVersion = _T("Version");
  112. const LPCTSTR g_szStandAlone = _T("StandAlone");
  113. const LPCTSTR g_szNodeTypes = _T("NodeTypes");
  114. const LPCTSTR g_szAbout = _T("About");
  115. const LPCTSTR g_szExtensions = _T("Extensions");
  116. const LPCTSTR g_szExtensionsView = _T("Extensions\\View");
  117. const LPCTSTR g_szNameSpace = _T("NameSpace");
  118. const LPCTSTR g_szServerAppsGuid = _T("{476e6449-aaff-11d0-b944-00c04fd8d5b0}");
  119. const LPCTSTR g_szUDDIAdminSites = _T( "Software\\Microsoft\\UDDI\\Admin\\Sites" );
  120. // const LPCTSTR g_szServerAppsLoc = _T("System\\CurrentControlSet\\Control\\Server Applications");
  121. const LPWSTR g_wszUddiServicesNodeHelp= L"::/default.htm";
  122. const LPWSTR g_wszUddiSiteNodeHelp = L"::/uddi.mmc.site.htm";
  123. const LPWSTR g_wszUddiWebServerNodeHelp = L"::/uddi.mmc.webserver.htm";
  124. const LPWSTR g_wszUddiSiteGeneralPageHelp = L"::/uddi.mmc.sitegeneraltab.htm";
  125. const LPWSTR g_wszUddiRolesPageHelp = L"::/uddi.mmc.siterolestab.htm";
  126. const LPWSTR g_wszUddiSecurityPageHelp = L"::/uddi.mmc.sitesecuritytab.htm";
  127. const LPWSTR g_wszUddiCryptographyHelp = L"::/uddi.mmc.sitecryptography.htm";
  128. const LPWSTR g_wszUddiActiveDirectoryPageHelp = L"::/uddi.mmc.siteactivedirectorytab.htm";
  129. const LPWSTR g_wszUddiAdvancedPageHelp = L"::/uddi.mmc.siteadvancedtab.htm";
  130. const LPWSTR g_wszUddiEditPropertyHelp = L"::/uddi.mmc.editproperty.htm";
  131. const LPWSTR g_wszUddiWebGeneralPageHelp = L"::/uddi.mmc.webgeneraltab.htm";
  132. const LPWSTR g_wszUddiLoggingPageHelp = L"::/uddi.mmc.webloggingtab.htm";
  133. const LPWSTR g_wszUddiDatabaseConnectionPageHelp = L"::/uddi.mmc.webdatabaseconnectiontab.htm";
  134. const LPWSTR g_wszUddiAddSiteHelp = L"::/uddi.mmc.addsite.htm";
  135. const LPWSTR g_wszUddiAddWebServerHelp = L"::/uddi.mmc.addsite.htm";