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.

131 lines
7.7 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. // constants.cpp
  3. #include "stdafx.h"
  4. LPCTSTR TERMINAL_SERVER_THIS_VERSION = _T("5.2");
  5. LPCTSTR TERMINAL_SERVER_NO_VERSION = _T("0.0");
  6. #ifdef UNICODE
  7. LPCTSTR PRODUCT_SUITE_KEY = REG_CONTROL L"\\ProductOptions";
  8. LPCTSTR SYSTEM_RDPWD_KEY = WD_REG_NAME L"\\rdpwd";
  9. LPCTSTR TS_LANATABLE_KEY = REG_CONTROL_TSERVER L"\\LanaTable";
  10. #else
  11. LPCTSTR PRODUCT_SUITE_KEY = REG_CONTROL_A "\\ProductOptions";
  12. LPCTSTR SYSTEM_RDPWD_KEY = WD_REG_NAME_A "\\rdpwd";
  13. LPCTSTR TS_LANATABLE_KEY = REG_CONTROL_TSERVER_A "\\LanaTable";
  14. #endif
  15. LPCTSTR TS_VIDEO_KEY = _T("VIDEO");
  16. LPCTSTR PRODUCT_SUITE_VALUE = _T("ProductSuite");
  17. LPCTSTR TS_PRODUCT_SUITE_STRING = _T("Terminal Server");
  18. LPCTSTR TS_ENABLED_VALUE = _T("TSEnabled");
  19. LPCTSTR TS_APPCMP_VALUE = _T("TSAppCompat");
  20. LPCTSTR LOGFILE = _T("%SystemRoot%\\tsoc.log");
  21. LPCTSTR MODULENAME = _T("tsoc.dll");
  22. LPCTSTR BASE_COMPONENT_NAME = _T("TerminalServices");
  23. LPCTSTR APPSRV_COMPONENT_NAME = _T("TerminalServer");
  24. LPCTSTR REMOTE_ADMIN_SERVER_X86 = _T("RemoteAdmin.srv.x86");
  25. LPCTSTR APPSERVER_SERVER_X86 = _T("AppServer.srv.x86");
  26. LPCTSTR TSDISABLED_SERVER_X86 = _T("DisabledTS.srv.x86");
  27. LPCTSTR PERSONALTS_SERVER_X86 = _T("PersonalTS.srv.x86");
  28. LPCTSTR REMOTE_ADMIN_SERVER_AMD64 = _T("RemoteAdmin.srv.amd64");
  29. LPCTSTR APPSERVER_SERVER_AMD64 = _T("AppServer.srv.amd64");
  30. LPCTSTR TSDISABLED_SERVER_AMD64 = _T("DisabledTS.srv.amd64");
  31. LPCTSTR PERSONALTS_SERVER_AMD64 = _T("PersonalTS.srv.amd64");
  32. LPCTSTR REMOTE_ADMIN_SERVER_IA64 = _T("RemoteAdmin.srv.ia64");
  33. LPCTSTR APPSERVER_SERVER_IA64 = _T("AppServer.srv.ia64");
  34. LPCTSTR TSDISABLED_SERVER_IA64 = _T("DisabledTS.srv.ia64");
  35. LPCTSTR PERSONALTS_SERVER_IA64 = _T("PersonalTS.srv.ia64");
  36. LPCTSTR UPGRADE_FROM_40_SERVER_X86 = _T("UpgradeFrom40Section.server.x86");
  37. LPCTSTR UPGRADE_FROM_50_SERVER_X86 = _T("UpgradeFrom50Section.server.x86");
  38. LPCTSTR UPGRADE_FROM_51_SERVER_X86 = _T("UpgradeFrom51Section.server.x86");
  39. LPCTSTR UPGRADE_FROM_52_SERVER_X86 = _T("UpgradeFrom52Section.server.x86");
  40. LPCTSTR FRESH_INSTALL_SERVER_X86 = _T("FreshInstallSection.server.x86");
  41. LPCTSTR UPGRADE_FROM_52_SERVER_AMD64 = _T("UpgradeFrom52Section.server.amd64");
  42. LPCTSTR FRESH_INSTALL_SERVER_AMD64 = _T("FreshInstallSection.server.amd64");
  43. LPCTSTR UPGRADE_FROM_40_SERVER_IA64 = _T("UpgradeFrom40Section.server.ia64");
  44. LPCTSTR UPGRADE_FROM_50_SERVER_IA64 = _T("UpgradeFrom50Section.server.ia64");
  45. LPCTSTR UPGRADE_FROM_51_SERVER_IA64 = _T("UpgradeFrom51Section.server.ia64");
  46. LPCTSTR UPGRADE_FROM_52_SERVER_IA64 = _T("UpgradeFrom52Section.server.ia64");
  47. LPCTSTR FRESH_INSTALL_SERVER_IA64 = _T("FreshInstallSection.server.ia64");
  48. LPCTSTR REMOTE_ADMIN_PRO_X86 = _T("RemoteAdmin.pro.x86");
  49. LPCTSTR APPSERVER_PRO_X86 = _T("AppServer.pro.x86");
  50. LPCTSTR TSDISABLED_PRO_X86 = _T("DisabledTS.pro.x86");
  51. LPCTSTR PERSONALTS_PRO_X86 = _T("PersonalTS.pro.x86");
  52. LPCTSTR REMOTE_ADMIN_PRO_AMD64 = _T("RemoteAdmin.pro.amd64");
  53. LPCTSTR APPSERVER_PRO_AMD64 = _T("AppServer.pro.amd64");
  54. LPCTSTR TSDISABLED_PRO_AMD64 = _T("DisabledTS.pro.amd64");
  55. LPCTSTR PERSONALTS_PRO_AMD64 = _T("PersonalTS.pro.amd64");
  56. LPCTSTR REMOTE_ADMIN_PRO_IA64 = _T("RemoteAdmin.pro.ia64");
  57. LPCTSTR APPSERVER_PRO_IA64 = _T("AppServer.pro.ia64");
  58. LPCTSTR TSDISABLED_PRO_IA64 = _T("DisabledTS.pro.ia64");
  59. LPCTSTR PERSONALTS_PRO_IA64 = _T("PersonalTS.pro.ia64");
  60. LPCTSTR UPGRADE_FROM_40_PRO_X86 = _T("UpgradeFrom40Section.pro.x86");
  61. LPCTSTR UPGRADE_FROM_50_PRO_X86 = _T("UpgradeFrom50Section.pro.x86");
  62. LPCTSTR UPGRADE_FROM_51_PRO_X86 = _T("UpgradeFrom51Section.pro.x86");
  63. LPCTSTR UPGRADE_FROM_52_PRO_X86 = _T("UpgradeFrom52Section.pro.x86");
  64. LPCTSTR FRESH_INSTALL_PRO_X86 = _T("FreshInstallSection.pro.x86");
  65. LPCTSTR UPGRADE_FROM_52_PRO_AMD64 = _T("UpgradeFrom52Section.pro.amd64");
  66. LPCTSTR FRESH_INSTALL_PRO_AMD64 = _T("FreshInstallSection.pro.amd64");
  67. LPCTSTR UPGRADE_FROM_40_PRO_IA64 = _T("UpgradeFrom40Section.pro.ia64");
  68. LPCTSTR UPGRADE_FROM_50_PRO_IA64 = _T("UpgradeFrom50Section.pro.ia64");
  69. LPCTSTR UPGRADE_FROM_51_PRO_IA64 = _T("UpgradeFrom51Section.pro.ia64");
  70. LPCTSTR UPGRADE_FROM_52_PRO_IA64 = _T("UpgradeFrom52Section.pro.ia64");
  71. LPCTSTR FRESH_INSTALL_PRO_IA64 = _T("FreshInstallSection.pro.ia64");
  72. // LPCTSTR SECURITY_APPSRV_SECTION = _T("TerminalServices.AppSrvDefaultSecurity");
  73. // LPCTSTR SECURITY_REMADM_SECTION = _T("TerminalServices.RemAdmDefaultSecurity");
  74. // LPCTSTR SECURITY_PRO_SECTION = _T("TerminalServices.ProDefaultSecurity");
  75. LPCTSTR TSCLIENTS_INSTALL_SECTION_SERVER = _T("TSClientInstallSection.server");
  76. LPCTSTR TSCLIENTS_UNINSTALL_SECTION_SERVER = _T("TSClientUninstallSection.server");
  77. LPCTSTR TSCLIENTS_INSTALL_SECTION_PRO = _T("TSClientInstallSection.pro");
  78. LPCTSTR TSCLIENTS_UNINSTALL_SECTION_PRO = _T("TSClientUninstallSection.pro");
  79. LPCTSTR TS_UNATTEND_APPSRVKEY = _T("TerminalServer");
  80. LPCTSTR TS_UNATTEND_PERMKEY = _T("PermissionsSetting");
  81. LPCTSTR TSCLIENT_DIRECTORY = _T("%SystemRoot%\\system32\\clients\\tsclient");
  82. LPCTSTR TS_EVENT_SOURCE = _T("TermService");
  83. LPCTSTR TERMSRV_PACK_4_KEY = _T("Windows NT Terminal Server 4.0 Service Pack 4");
  84. LPCTSTR TERMSRV_PACK_5_KEY = _T("Windows NT Terminal Server 4.0 Service Pack 5");
  85. LPCTSTR TERMSRV_PACK_6_KEY = _T("Windows NT Terminal Server 4.0 Service Pack 6");
  86. LPCTSTR TERMSRV_PACK_7_KEY = _T("Windows NT Terminal Server 4.0 Service Pack 7");
  87. LPCTSTR TERMSRV_PACK_8_KEY = _T("Windows NT Terminal Server 4.0 Service Pack 8");
  88. LPCTSTR SOFTWARE_UNINSTALL_KEY = _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall");
  89. LPCTSTR DENY_CONN_VALUE = _T("fDenyTSConnections");
  90. LPCTSTR TS_ALLOW_CON_ENTRY = _T("AllowConnections");
  91. LPCTSTR TS_ALLOW_CON_ENTRY_2 = _T("AllowConnection");
  92. LPCTSTR TS_DENY_POPUP = _T("NoHelpPopup");
  93. LPCTSTR TS_LICENSING_MODE = _T("LicensingMode");
  94. LPCTSTR SVCHOSST_KEY = _T("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Svchost");
  95. LPCTSTR TERMSVCS_VAL = _T("termsvcs");
  96. LPCTSTR NETSVCS_VAL = _T("netsvcs");
  97. LPCTSTR TERMSERVICE = _T("TermService");
  98. LPCTSTR TERMSERVICE_MULTISZ = _T("TermService\0");
  99. LPCTSTR TERMSVCS_PARMS = _T("CoInitializeSecurityParam");
  100. LPCTSTR SVCHOSST_TERMSRV_KEY = _T("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Svchost\\termsvcs");
  101. LPCTSTR RUN_KEY = _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run");
  102. LPCTSTR HELP_POPUPRUN_VALUE = _T("TerminalServerInstalled");
  103. LPCTSTR HELP_PUPUP_COMMAND = _T("rundll32.exe %windir%\\system32\\tscc.dll, TSCheckList");