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.

300 lines
13 KiB

  1. /*** infstr.h - SetupAPI INF string definitions
  2. *
  3. * This module contains public registry string definitions.
  4. *
  5. * Copyright (c) Microsoft Corporation. All rights reserved.
  6. *
  7. * MODIFICATION HISTORY
  8. */
  9. #ifndef _INC_INFSTR
  10. #define _INC_INFSTR
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif
  14. //***************************************************************************
  15. //
  16. // Misc. key strings used by Setup Info. File
  17. //
  18. //***************************************************************************
  19. #define MAX_KEY_LEN 100
  20. #define SZ_KEY_OPTIONDESC TEXT("OptionDesc")
  21. #define SZ_KEY_LDIDOEM TEXT("LdidOEM")
  22. #define SZ_KEY_SRCDISKFILES TEXT("SourceDisksFiles")
  23. #define SZ_KEY_SRCDISKNAMES TEXT("SourceDisksNames")
  24. #define SZ_KEY_STRINGS TEXT("Strings")
  25. #define SZ_KEY_DESTDIRS TEXT("DestinationDirs")
  26. #define SZ_KEY_LAYOUT_FILE TEXT("LayoutFile")
  27. #define SZ_KEY_DEFDESTDIR TEXT("DefaultDestDir")
  28. #define SZ_KEY_LFN_SECTION TEXT("VarLDID.LFN")
  29. #define SZ_KEY_SFN_SECTION TEXT("VarLDID.SFN")
  30. #define SZ_KEY_UPDATEINIS TEXT("UpdateInis")
  31. #define SZ_KEY_UPDATEINIFIELDS TEXT("UpdateIniFields")
  32. #define SZ_KEY_INI2REG TEXT("Ini2Reg")
  33. #define SZ_KEY_COPYFILES TEXT("CopyFiles")
  34. #define SZ_KEY_RENFILES TEXT("RenFiles")
  35. #define SZ_KEY_DELFILES TEXT("DelFiles")
  36. #define SZ_KEY_ADDREG TEXT("AddReg")
  37. #define SZ_KEY_ADDREGNOCLOBBER TEXT("AddRegNoClobber")
  38. #define SZ_KEY_DELREG TEXT("DelReg")
  39. #define SZ_KEY_BITREG TEXT("BitReg")
  40. #define SZ_KEY_COPYINF TEXT("CopyINF")
  41. #define SZ_KEY_LOGCONFIG TEXT("LogConfig")
  42. #define SZ_KEY_ADDSERVICE TEXT("AddService")
  43. #define SZ_KEY_DELSERVICE TEXT("DelService")
  44. #define SZ_KEY_ADDINTERFACE TEXT("AddInterface")
  45. #define SZ_KEY_ADDIME TEXT("AddIme")
  46. #define SZ_KEY_DELIME TEXT("DelIme")
  47. #define SZ_KEY_REGSVR TEXT("RegisterDlls")
  48. #define SZ_KEY_UNREGSVR TEXT("UnregisterDlls")
  49. #define SZ_KEY_PROFILEITEMS TEXT("ProfileItems")
  50. #define SZ_KEY_MODULES TEXT("Modules")
  51. #define SZ_KEY_DEFAULTOPTION TEXT("DefaultOption")
  52. #define SZ_KEY_LISTOPTIONS TEXT("ListOptions")
  53. #define SZ_KEY_CLEANONLY TEXT("CleanOnly")
  54. #define SZ_KEY_UPGRADEONLY TEXT("UpgradeOnly")
  55. #define SZ_KEY_EXCLUDEID TEXT("ExcludeId")
  56. // These are here for compatability with SetupX
  57. // They are registry keys, and are not used by SetupAPI
  58. #define SZ_KEY_PHASE1 TEXT("Phase1")
  59. #define SZ_KEY_HARDWARE TEXT("Hardware")
  60. // Foll. char is used to enclose a STRING KEY -- A key enclosed by this char
  61. // should be in the [Strings] section of the INF file.
  62. #define CH_STRINGKEY TEXT('%')
  63. // Foll. char is used to specify that what follows it is a file name
  64. // rather than a section with files in the Copy= file of a Generic
  65. // Install_Section.
  66. //
  67. #define CH_FILESPECIFIER TEXT('@')
  68. /*** Strings that will be used in the PnP INF files to specify
  69. * LogConfig information, etc. This will be used to update the
  70. * registry appropriately.
  71. */
  72. #define INFSTR_KEY_CONFIGPRIORITY TEXT("ConfigPriority")
  73. // Foll. is length of buffer for the strings like HARDWIRED, etc.
  74. #define MAX_PRIORITYSTR_LEN 16
  75. /*** Foll. are strings that can be used for ConfigPriority=
  76. */
  77. #define INFSTR_CFGPRI_HARDWIRED TEXT("HARDWIRED")
  78. #define INFSTR_CFGPRI_DESIRED TEXT("DESIRED")
  79. #define INFSTR_CFGPRI_NORMAL TEXT("NORMAL")
  80. #define INFSTR_CFGPRI_SUBOPTIMAL TEXT("SUBOPTIMAL")
  81. #define INFSTR_CFGPRI_DISABLED TEXT("DISABLED")
  82. #define INFSTR_CFGPRI_RESTART TEXT("RESTART")
  83. #define INFSTR_CFGPRI_REBOOT TEXT("REBOOT")
  84. #define INFSTR_CFGPRI_POWEROFF TEXT("POWEROFF")
  85. #define INFSTR_CFGPRI_HARDRECONFIG TEXT("HARDRECONFIG")
  86. #define INFSTR_CFGPRI_FORCECONFIG TEXT("FORCECONFIG")
  87. #define INFSTR_CFGTYPE_BASIC TEXT("BASIC")
  88. #define INFSTR_CFGTYPE_FORCED TEXT("FORCED")
  89. #define INFSTR_CFGTYPE_OVERRIDE TEXT("OVERRIDE")
  90. #define INFSTR_KEY_MEMCONFIG TEXT("MemConfig")
  91. #define INFSTR_KEY_IOCONFIG TEXT("IOConfig")
  92. #define INFSTR_KEY_IRQCONFIG TEXT("IRQConfig")
  93. #define INFSTR_KEY_DMACONFIG TEXT("DMAConfig")
  94. #define INFSTR_KEY_PCCARDCONFIG TEXT("PcCardConfig")
  95. #define INFSTR_KEY_MFCARDCONFIG TEXT("MfCardConfig")
  96. //
  97. // Used to install a class installer
  98. //
  99. #define INFSTR_SECT_CLASS_INSTALL TEXT("ClassInstall")
  100. #define INFSTR_SECT_CLASS_INSTALL_32 TEXT("ClassInstall32")
  101. //
  102. // Used to install an interface class
  103. //
  104. #define INFSTR_SECT_INTERFACE_INSTALL_32 TEXT("InterfaceInstall32")
  105. // General information about the contents/origins of the .INF.
  106. #define INFSTR_SECT_VERSION TEXT("Version")
  107. // Provider name under [version] section
  108. #define INFSTR_KEY_PROVIDER TEXT("Provider")
  109. // Signature under [version] section indicates a Win95-style device INF
  110. #define INFSTR_KEY_SIGNATURE TEXT("Signature")
  111. // [Version]
  112. // Specifies what the hardware class of any devices contained in this .INF.
  113. #define MAX_INF_FLAG 20
  114. #define INFSTR_KEY_HARDWARE_CLASS TEXT("Class")
  115. #define INFSTR_KEY_HARDWARE_CLASSGUID TEXT("ClassGUID")
  116. #define INFSTR_KEY_NOSETUPINF TEXT("NoSetupInf")
  117. #define INFSTR_KEY_FROMINET TEXT("FromINet")
  118. #define INFSTR_KEY_CATALOGFILE TEXT("CatalogFile")
  119. //
  120. // Manufacturer section name
  121. //
  122. #define INFSTR_SECT_MFG TEXT("Manufacturer")
  123. //
  124. // Specifies the hardware class of this device.
  125. //
  126. #define INFSTR_KEY_CLASS TEXT("Class")
  127. #define INFSTR_KEY_CLASSGUID TEXT("ClassGUID")
  128. //
  129. // Used by (Setup)DiInstallDevice to know that need to reboot or restart after
  130. // installing the device.
  131. //
  132. #define INFSTR_RESTART TEXT("Restart")
  133. #define INFSTR_REBOOT TEXT("Reboot")
  134. //
  135. // Used by SetupDiInstallDevice to specify the service parameters passed
  136. // to the Service Control Manager to create/modify a service.
  137. //
  138. #define INFSTR_KEY_DISPLAYNAME TEXT("DisplayName")
  139. #define INFSTR_KEY_SERVICETYPE TEXT("ServiceType")
  140. #define INFSTR_KEY_STARTTYPE TEXT("StartType")
  141. #define INFSTR_KEY_ERRORCONTROL TEXT("ErrorControl")
  142. #define INFSTR_KEY_SERVICEBINARY TEXT("ServiceBinary")
  143. #define INFSTR_KEY_LOADORDERGROUP TEXT("LoadOrderGroup")
  144. #define INFSTR_KEY_DEPENDENCIES TEXT("Dependencies")
  145. #define INFSTR_KEY_STARTNAME TEXT("StartName")
  146. #define INFSTR_KEY_SECURITY TEXT("Security")
  147. #define INFSTR_KEY_DESCRIPTION TEXT("Description")
  148. // The following are the characters to parse IORange and MemRange fields.
  149. #define CH_SIZE_DELIM TEXT('@')
  150. #define CH_MINMAX_SEP TEXT('-')
  151. #define CH_ALIGNMASK_BEGIN TEXT('%')
  152. #define CH_TRAIL_BEGIN TEXT('(')
  153. #define CH_TRAIL_SEP TEXT(':')
  154. #define CH_TRAIL_END TEXT(')')
  155. // The following is char to parse IRQ and DMA attr from the numbers!
  156. #define CH_ATTR_DELIM TEXT(':')
  157. // The following is for Windows 9x System Detection
  158. #define INFSTR_SECT_DETMODULES TEXT("Det.Modules")
  159. #define INFSTR_SECT_DETCLASSINFO TEXT("Det.ClassInfo")
  160. #define INFSTR_SECT_MANUALDEV TEXT("Det.ManualDev")
  161. #define INFSTR_SECT_AVOIDCFGSYSDEV TEXT("Det.AvoidCfgSysDev")
  162. #define INFSTR_SECT_REGCFGSYSDEV TEXT("Det.RegCfgSysDev")
  163. #define INFSTR_SECT_DEVINFS TEXT("Det.DevINFs")
  164. #define INFSTR_SECT_AVOIDINIDEV TEXT("Det.AvoidIniDev")
  165. #define INFSTR_SECT_AVOIDENVDEV TEXT("Det.AvoidEnvDev")
  166. #define INFSTR_SECT_REGINIDEV TEXT("Det.RegIniDev")
  167. #define INFSTR_SECT_REGENVDEV TEXT("Det.RegEnvDev")
  168. #define INFSTR_SECT_HPOMNIBOOK TEXT("Det.HPOmnibook")
  169. #define INFSTR_SECT_FORCEHWVERIFY TEXT("Det.ForceHWVerify")
  170. #define INFSTR_SECT_DETOPTIONS TEXT("Det.Options")
  171. #define INFSTR_SECT_BADPNPBIOS TEXT("BadPnpBios")
  172. #define INFSTR_SECT_GOODACPIBIOS TEXT("GoodACPIBios")
  173. #define INFSTR_SECT_BADACPIBIOS TEXT("BadACPIBios")
  174. #define INFSTR_SECT_BADROUTINGTABLEBIOS TEXT("BadPCIIRQRoutingTableBios")
  175. #define INFSTR_SECT_BADPMCALLBIOS TEXT("BadProtectedModeCallBios")
  176. #define INFSTR_SECT_BADRMCALLBIOS TEXT("BadRealModeCallBios")
  177. #define INFSTR_SECT_MACHINEIDBIOS TEXT("MachineIDBios")
  178. #define INFSTR_SECT_BADDISKBIOS TEXT("BadDiskBios")
  179. #define INFSTR_SECT_BADDSBIOS TEXT("BadDSBios")
  180. #define INFSTR_KEY_DETPARAMS TEXT("Params")
  181. #define INFSTR_KEY_SKIPLIST TEXT("SkipList")
  182. #define INFSTR_KEY_DETECTLIST TEXT("DetectList")
  183. #define INFSTR_KEY_EXCLUDERES TEXT("ExcludeRes")
  184. //Subkeys are used in the form x.<subkey>
  185. #define INFSTR_SUBKEY_LOGCONFIG TEXT("LogConfig")
  186. #define INFSTR_SUBKEY_DET TEXT("Det")
  187. #define INFSTR_SUBKEY_FACTDEF TEXT("FactDef")
  188. #define INFSTR_SUBKEY_POSSIBLEDUPS TEXT("PosDup")
  189. #define INFSTR_SUBKEY_NORESOURCEDUPS TEXT("NoResDup")
  190. #define INFSTR_SUBKEY_HW TEXT("Hw")
  191. #define INFSTR_SUBKEY_CTL TEXT("CTL")
  192. #define INFSTR_SUBKEY_SERVICES TEXT("Services")
  193. #define INFSTR_SUBKEY_INTERFACES TEXT("Interfaces")
  194. #define INFSTR_SUBKEY_COINSTALLERS TEXT("CoInstallers")
  195. #define INFSTR_SUBKEY_LOGCONFIGOVERRIDE TEXT("LogConfigOverride")
  196. #define INFSTR_SUBKEY_WMI TEXT("WMI")
  197. // Control Section
  198. #define INFSTR_CONTROLFLAGS_SECTION TEXT("ControlFlags")
  199. #define INFSTR_KEY_COPYFILESONLY TEXT("CopyFilesOnly")
  200. #define INFSTR_KEY_EXCLUDEFROMSELECT TEXT("ExcludeFromSelect")
  201. #define INFSTR_KEY_INTERACTIVEINSTALL TEXT("InteractiveInstall")
  202. // Platform-specific suffixes (e.g., "ExcludeFromSelect.NT")
  203. #define INFSTR_PLATFORM_WIN TEXT("Win")
  204. #define INFSTR_PLATFORM_NT TEXT("NT")
  205. #define INFSTR_PLATFORM_NTX86 TEXT("NTx86")
  206. #define INFSTR_PLATFORM_NTMIPS TEXT("NTMIPS")
  207. #define INFSTR_PLATFORM_NTALPHA TEXT("NTAlpha")
  208. #define INFSTR_PLATFORM_NTPPC TEXT("NTPPC")
  209. #define INFSTR_PLATFORM_NTIA64 TEXT("NTIA64")
  210. #define INFSTR_PLATFORM_NTAXP64 TEXT("NTAXP64")
  211. #define INFSTR_PLATFORM_NTAMD64 TEXT("NTAMD64")
  212. // Fields that will by used to dereference strings.
  213. // These are of the form x.<strkey> were strkey is limited to
  214. // MAX_INFSTR_STRKEY_LEN characters
  215. #define MAX_INFSTR_STRKEY_LEN 32
  216. #define INFSTR_STRKEY_DRVDESC TEXT("DriverDesc")
  217. // DriverSelect
  218. #define INFSTR_DRIVERSELECT_SECTION TEXT("DriverSelect")
  219. #define INFSTR_DRIVERSELECT_FUNCTIONS TEXT("DriverSelectFunctions")
  220. // Driver Version
  221. #define INFSTR_DRIVERVERSION_SECTION TEXT("DriverVer")
  222. // The following is for PCMCIA.INF parsing
  223. #define INFSTR_SECT_CFGSYS TEXT("ConfigSysDrivers")
  224. #define INFSTR_SECT_AUTOEXECBAT TEXT("AutoexecBatDrivers")
  225. #define INFSTR_SECT_SYSINI TEXT("SystemIniDrivers")
  226. #define INFSTR_SECT_SYSINIDRV TEXT("SystemIniDriversLine")
  227. #define INFSTR_SECT_WININIRUN TEXT("WinIniRunLine")
  228. //Keys in the config.sys device sections
  229. #define INFSTR_KEY_PATH TEXT("Path")
  230. #define INFSTR_KEY_NAME TEXT("Name")
  231. #define INFSTR_KEY_IO TEXT("IO")
  232. #define INFSTR_KEY_MEM TEXT("Mem")
  233. #define INFSTR_KEY_IRQ TEXT("IRQ")
  234. #define INFSTR_KEY_DMA TEXT("DMA")
  235. //Fields of detection function registration
  236. #define INFSTR_BUS_ISA TEXT("BUS_ISA")
  237. #define INFSTR_BUS_EISA TEXT("BUS_EISA")
  238. #define INFSTR_BUS_MCA TEXT("BUS_MCA")
  239. #define INFSTR_BUS_ALL TEXT("BUS_ALL")
  240. #define INFSTR_RISK_NONE TEXT("RISK_NONE")
  241. #define INFSTR_RISK_VERYLOW TEXT("RISK_VERYLOW")
  242. #define INFSTR_RISK_BIOSROMRD TEXT("RISK_BIOSROMRD")
  243. #define INFSTR_RISK_QUERYDRV TEXT("RISK_QUERYDRV")
  244. #define INFSTR_RISK_SWINT TEXT("RISK_SWINT")
  245. #define INFSTR_RISK_LOW TEXT("RISK_LOW")
  246. #define INFSTR_RISK_DELICATE TEXT("RISK_DELICATE")
  247. #define INFSTR_RISK_MEMRD TEXT("RISK_MEMRD")
  248. #define INFSTR_RISK_IORD TEXT("RISK_IORD")
  249. #define INFSTR_RISK_MEMWR TEXT("RISK_MEMWR")
  250. #define INFSTR_RISK_IOWR TEXT("RISK_IOWR")
  251. #define INFSTR_RISK_UNRELIABLE TEXT("RISK_UNRELIABLE")
  252. #define INFSTR_RISK_VERYHIGH TEXT("RISK_VERYHIGH")
  253. #define INFSTR_CLASS_SAFEEXCL TEXT("SAFE_EXCL")
  254. #define INFSTR_SECT_DISPLAY_CLEANUP TEXT("DisplayCleanup")
  255. #endif //_INC_INFSTR