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.

149 lines
7.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: N C S T R S . C P P
  7. //
  8. // Contents: Common strings for the various NetCfg projects.
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 16 Feb 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #include <pch.h>
  16. #pragma hdrstop
  17. // __declspec(selectany) tells the compiler that the string should be in
  18. // its own COMDAT. This allows the linker to throw out unused strings.
  19. // If we didn't do this, the COMDAT for this module would reference the
  20. // strings so they wouldn't be thrown out.
  21. //
  22. #define CONST_GLOBAL extern const DECLSPEC_SELECTANY
  23. CONST_GLOBAL WCHAR c_szRegKeyRefCounts[] = L"RefCounts";
  24. CONST_GLOBAL WCHAR c_szRegValueComponentId[] = L"ComponentId";
  25. CONST_GLOBAL WCHAR c_szBusType[] = L"BusType";
  26. // DLL names and aliases
  27. //
  28. CONST_GLOBAL WCHAR c_szNetCfgDll[] = L"netcfgx.dll";
  29. CONST_GLOBAL WCHAR c_szNetShellDll[] = L"netshell.dll";
  30. CONST_GLOBAL WCHAR c_szNetUpgradeDll[] = L"netupgrd.dll";
  31. // other file names
  32. CONST_GLOBAL WCHAR c_szNetCfgHelpFile[] = L"netcfg.hlp";
  33. // Delimiters and other globals
  34. CONST_GLOBAL WCHAR c_szEmpty[] = L"";
  35. CONST_GLOBAL WCHAR c_szBackslash[] = L"\\";
  36. CONST_GLOBAL WCHAR c_szSpace[] = L" ";
  37. CONST_GLOBAL WCHAR c_szDevice[] = L"\\Device\\";
  38. CONST_GLOBAL WCHAR c_szYes[] = L"Yes";
  39. CONST_GLOBAL WCHAR c_szNo[] = L"No";
  40. // Service names
  41. CONST_GLOBAL WCHAR c_szSvcBrowser[] = L"Browser";
  42. CONST_GLOBAL WCHAR c_szSvcDhcpRelayAgent[] = L"RelayAgent";
  43. CONST_GLOBAL WCHAR c_szSvcDhcpServer[] = L"DHCPServer";
  44. CONST_GLOBAL WCHAR c_szSvcDnscache[] = L"Dnscache";
  45. CONST_GLOBAL WCHAR c_szSvcLmHosts[] = L"LmHosts";
  46. CONST_GLOBAL WCHAR c_szSvcLmServer[] = L"LanmanServer";
  47. CONST_GLOBAL WCHAR c_szSvcMessenger[] = L"Messenger";
  48. CONST_GLOBAL WCHAR c_szSvcNTLMSsp[] = L"NtLmSsp";
  49. CONST_GLOBAL WCHAR c_szSvcNWCWorkstation[] = L"NWCWorkstation";
  50. CONST_GLOBAL WCHAR c_szSvcNwlnkIpx[] = L"NwlnkIpx";
  51. CONST_GLOBAL WCHAR c_szSvcNetBIOS[] = L"NetBIOS";
  52. CONST_GLOBAL WCHAR c_szSvcNetLogon[] = L"NetLogon";
  53. CONST_GLOBAL WCHAR c_szSvcRPCLocator[] = L"Rpclocator";
  54. CONST_GLOBAL WCHAR c_szSvcRasAuto[] = L"RasAuto";
  55. CONST_GLOBAL WCHAR c_szSvcRasMan[] = L"RasMan";
  56. CONST_GLOBAL WCHAR c_szSvcRdbss[] = L"Rdbss";
  57. CONST_GLOBAL WCHAR c_szSvcRdr[] = L"Rdr";
  58. CONST_GLOBAL WCHAR c_szSvcRemoteAccess[] = L"RemoteAccess";
  59. CONST_GLOBAL WCHAR c_szSvcReplicator[] = L"Replicator";
  60. CONST_GLOBAL WCHAR c_szSvcRipForIp[] = L"IpRip";
  61. CONST_GLOBAL WCHAR c_szSvcRipForIpx[] = L"NwlnkRip";
  62. CONST_GLOBAL WCHAR c_szSvcRouter[] = L"Router";
  63. CONST_GLOBAL WCHAR c_szSvcSapAgent[] = L"NwSapAgent";
  64. CONST_GLOBAL WCHAR c_szSvcWinsClient[] = L"NetBT";
  65. CONST_GLOBAL WCHAR c_szSvcWorkstation[] = L"LanmanWorkstation";
  66. CONST_GLOBAL WCHAR c_szRegKeyCtlLsa[] = L"System\\CurrentControlSet\\Control\\Lsa";
  67. CONST_GLOBAL WCHAR c_szRegKeyCtlNPOrder[] = L"System\\CurrentControlSet\\Control\\NetworkProvider\\Order";
  68. CONST_GLOBAL WCHAR c_szRegKeyCtlNetProvider[] = L"System\\CurrentControlSet\\Control\\NetworkProvider";
  69. CONST_GLOBAL WCHAR c_szRegKeyServices[] = L"System\\CurrentControlSet\\Services";
  70. CONST_GLOBAL WCHAR c_szProviderOrder[] = L"ProviderOrder";
  71. CONST_GLOBAL WCHAR c_szRegValDependOnGroup[] = L"DependOnGroup";
  72. CONST_GLOBAL WCHAR c_szRegValDependOnService[] = L"DependOnService";
  73. CONST_GLOBAL WCHAR c_szRegValServiceName[] = L"ServiceName";
  74. CONST_GLOBAL WCHAR c_szRegValStart[] = L"Start";
  75. // Binding Interface Names
  76. CONST_GLOBAL WCHAR c_szBiNdis4[] = L"ndis4";
  77. CONST_GLOBAL WCHAR c_szBiNdis5[] = L"ndis5";
  78. CONST_GLOBAL WCHAR c_szBiNdis5Ip[] = L"ndis5_ip";
  79. CONST_GLOBAL WCHAR c_szBiNdisAtm[] = L"ndisatm";
  80. CONST_GLOBAL WCHAR c_szBiNdisBda[] = L"ndisbda";
  81. CONST_GLOBAL WCHAR c_szBiNdisCoWan[] = L"ndiscowan";
  82. CONST_GLOBAL WCHAR c_szBiNdisWan[] = L"ndiswan";
  83. CONST_GLOBAL WCHAR c_szBiNdisWanAsync[] = L"ndiswanasync";
  84. CONST_GLOBAL WCHAR c_szBiNdisWanAtalk[] = L"ndiswanatalk";
  85. CONST_GLOBAL WCHAR c_szBiNdisWanBh[] = L"ndiswanbh";
  86. CONST_GLOBAL WCHAR c_szBiNdisWanIp[] = L"ndiswanip";
  87. CONST_GLOBAL WCHAR c_szBiNdisWanIpx[] = L"ndiswanipx";
  88. CONST_GLOBAL WCHAR c_szBiNdisWanNbf[] = L"ndiswannbf";
  89. CONST_GLOBAL WCHAR c_szBiNdis1394[] = L"ndis1394";
  90. CONST_GLOBAL WCHAR c_szBiLocalTalk[] = L"LocalTalk"; // Yes this is a LOWER interface
  91. // <Protocol>\Parameters\Adapters
  92. CONST_GLOBAL WCHAR c_szParameters[] = L"Parameters";
  93. CONST_GLOBAL WCHAR c_szAdapters[] = L"Adapters";
  94. // Used by Netsetup and Component's who's answer file references AdapterSections
  95. CONST_GLOBAL WCHAR c_szAdapterSections[] = L"AdapterSections";
  96. CONST_GLOBAL WCHAR c_szSpecificTo[] = L"SpecificTo";
  97. #ifdef DBG
  98. //debugging related
  99. CONST_GLOBAL CHAR c_szDbgBadReadPtrMsg[] = "Bad read pointer";
  100. CONST_GLOBAL CHAR c_szDbgBadWritePtrMsg[] = "Bad write pointer";
  101. #endif
  102. // Net detect dll and functions
  103. CONST_GLOBAL WCHAR c_szNetDetDll[] = L"netdet.dll";
  104. CONST_GLOBAL CHAR c_szaNetDetectRegister[] = "NetDetectRegister";
  105. CONST_GLOBAL CHAR c_szaNetDetectDeregister[] = "NetDetectDeregister";
  106. CONST_GLOBAL CHAR c_szaNetDetectFindAdapter[] = "NetDetectFindAdapter";
  107. CONST_GLOBAL CHAR c_szaNetDetectFreeAdapterInfo[] = "NetDetectFreeAdapterInfo";
  108. // tcpras.h
  109. CONST_GLOBAL WCHAR c_szNdisWan[] = L"NdisWan";
  110. // Component registry constants
  111. CONST_GLOBAL WCHAR c_szRegKeyInterfacesFromInstance[] = L"Ndi\\Interfaces";
  112. CONST_GLOBAL WCHAR c_szRegValueLowerRange[] = L"LowerRange";
  113. CONST_GLOBAL WCHAR c_szRegValueUpperRange[] = L"UpperRange";
  114. // Device installer related strings
  115. CONST_GLOBAL WCHAR c_szRegValueNetCfgInstanceId[] = L"NetCfgInstanceID";
  116. CONST_GLOBAL WCHAR c_szRegValuePnpInstanceId[] = L"PnpInstanceID";
  117. CONST_GLOBAL WCHAR c_szRegKeyComponentClasses[] = L"SYSTEM\\CurrentControlSet\\Control\\Network";
  118. CONST_GLOBAL WCHAR c_szRegValueInstallerAction[] = L"InstallerAction";
  119. // Optional component strings
  120. CONST_GLOBAL WCHAR c_szOcMainSection[] = L"NetOptionalComponents";
  121. // NWCWorkstation service subkey names
  122. CONST_GLOBAL WCHAR c_szShares[] = L"Shares";
  123. CONST_GLOBAL WCHAR c_szDrives[] = L"Drives";
  124. CONST_GLOBAL WCHAR c_szRegKeyNt4Adapters[] = L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\NetworkCards";