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.

343 lines
19 KiB

  1. #include <windows.h>
  2. #include <commctrl.h>
  3. #include "rc_ids.h"
  4. //
  5. // Icon resources.
  6. //
  7. ICON_DISPLAY ICON DISCARDABLE "resource\\DISPLAY.ICO"
  8. ICON_MOUSE ICON DISCARDABLE "resource\\MOUSE.ICO"
  9. ICON_KEYBOARD ICON DISCARDABLE "resource\\KEYBD.ICO"
  10. ICON_PRINTER ICON DISCARDABLE "resource\\PRINTER.ICO"
  11. ICON_FLOPPY ICON DISCARDABLE "resource\\DRIVEFLP.ICO"
  12. ICON_CD ICON DISCARDABLE "resource\\DRIVECD.ICO"
  13. ICON_NETWORK ICON DISCARDABLE "resource\\DRIVENET.ICO"
  14. ICON_HARD ICON DISCARDABLE "resource\\DRIVEHAR.ICO"
  15. ICON_SETUP ICON DISCARDABLE "resource\\SETUP.ICO"
  16. ICON_NET ICON DISCARDABLE "resource\\ADAPTER2.ICO"
  17. ICON_NETTRANS ICON DISCARDABLE "resource\\PROTCL2.ICO"
  18. ICON_NETCLIENT ICON DISCARDABLE "resource\\SERVER2.ICO"
  19. ICON_NETSERVICE ICON DISCARDABLE "resource\\SERVER3.ICO"
  20. ICON_CONTROLLER ICON DISCARDABLE "resource\\CONTRLLR.ICO"
  21. ICON_UNKNOWN ICON DISCARDABLE "resource\\UNKNOWN.ICO"
  22. ICON_EBD ICON DISCARDABLE "resource\\DISK.ICO"
  23. ICON_SCSI ICON DISCARDABLE "resource\\SCSI-II.ICO"
  24. ICON_PCCARD ICON DISCARDABLE "resource\\PCCARD.ICO"
  25. ICON_DEFAULT ICON DISCARDABLE "resource\\DEFAULT.ICO"
  26. ICON_USB ICON DISCARDABLE "resource\\USB.ICO"
  27. ICON_1394 ICON DISCARDABLE "resource\\1394.ICO"
  28. ICON_GPS ICON DISCARDABLE "resource\\PNAPI.ICO"
  29. ICON_PORT ICON DISCARDABLE "resource\\PORT.ICO"
  30. ICON_HID ICON DISCARDABLE "resource\\HID.ICO"
  31. ICON_SMARTCARDREADER ICON DISCARDABLE "resource\\SMARTCRD.ICO"
  32. ICON_MULTIPORTSERIAL ICON DISCARDABLE "resource\\MULTIPRT.ICO"
  33. ICON_SYSTEM ICON DISCARDABLE "resource\\SYSTEM.ICO"
  34. ICON_PROCESSOR ICON DISCARDABLE "resource\\PROCESSR.ICO"
  35. ICON_MEDIACHANGER ICON DISCARDABLE "resource\\MCHGR.ICO"
  36. ICON_BIOMETRIC ICON DISCARDABLE "resource\\BIOMETRIC.ICO"
  37. IDI_CONFLICT ICON DISCARDABLE "resource\\CONFLICT.ICO"
  38. IDI_RESOURCE ICON DISCARDABLE "resource\\RESOURCE.ICO"
  39. IDI_DISABLED_OVL ICON DISCARDABLE "resource\\DISABDEV.ICO"
  40. IDI_FORCED_OVL ICON DISCARDABLE "resource\\FORCED.ICO"
  41. IDI_PROBLEM_OVL ICON DISCARDABLE "resource\\PROBLEM.ICO"
  42. IDI_SIGNED ICON DISCARDABLE "resource\\SIGNED.ICO"
  43. IDI_CERT ICON DISCARDABLE "resource\\CERT.ICO"
  44. IDI_BLANK ICON DISCARDABLE "resource\\BLANK.ICO"
  45. IDI_WARN ICON DISCARDABLE "resource\\WARNING.ICO"
  46. IDI_DRIVERBLOCK ICON DISCARDABLE "resource\\DBLOCK.ICO"
  47. IDI_SECURITY ICON DISCARDABLE "resource\\SECURITY.ICO"
  48. //
  49. // Bitmap resources.
  50. //
  51. BMP_DRIVERTYPES BITMAP "resource\\ilwinmsd.bmp"
  52. //
  53. // AVIs
  54. //
  55. IDA_FILECOPY AVI "resource\\filecopy.avi"
  56. IDA_FILEDEL AVI "resource\\filedel.avi"
  57. STRINGTABLE DISCARDABLE
  58. {
  59. IDS_MICROSOFT, "Microsoft"
  60. IDS_UNKNOWN_PARENS, "(Unknown)"
  61. IDS_LOCATEFILE, "Locate File"
  62. IDS_OUTOFMEMORY, "Insufficient memory"
  63. IDS_ADDITIONALMODELS "(Additional models)"
  64. IDS_LANG_NEUTRAL, "unspecified language"
  65. IDS_LANG_UNKNOWN, "unknown language"
  66. //
  67. // Strings in disk prompt/copy error dialog
  68. //
  69. IDS_FILESNEEDED, "Files Needed"
  70. IDS_FILESNEEDED2, "%1 -- Files Needed"
  71. IDS_PROMPTTITLE "Insert Disk"
  72. IDS_COPYFROM, "&Copy files from:"
  73. IDS_COPYFROMOEM, "&Copy manufacturer's files from:"
  74. IDS_DISKPROMPT1, "Some files on %1 are needed."
  75. IDS_DISKPROMPT2, "The file '%1' on %2 is needed."
  76. IDS_DISKPROMPTOEM, "Insert the manufacturer's installation disk, and then make sure that the correct drive is selected below."
  77. IDS_PROMPTACTION1, "Insert %1 into the drive selected below, and then click OK."
  78. IDS_PROMPTACTION2, "Type the path where the file is located, and then click OK."
  79. IDS_COPYERROR, "Copy Error"
  80. IDS_FILEERRCOPY, "Setup cannot copy the file %1."
  81. IDS_RETRY "&Retry"
  82. IDS_COPYERROROEM, "Ensure that the manufacturer's disk is properly inserted in the drive selected below, or provide the location where the file can be found."
  83. IDS_COPYERROR1, "Ensure that the disk labeled '%1' is in the drive selected below, or provide the location where the file can be found."
  84. IDS_COPYERROR2, "Ensure that the location specified below is correct, or change it and insert '%1' in the drive you specify."
  85. IDS_ERRORDETAILS, "Error Details"
  86. IDS_WARNING, "Warning"
  87. IDS_ERROR, "Error"
  88. IDS_RENAMEERROR "Rename Error"
  89. IDS_DELETEERROR "Delete Error"
  90. IDS_BACKUPERROR "Backup Error"
  91. IDS_CANCELALL "Do you want to continue Setup without copying this file?"
  92. IDS_SURESKIP, "If you cancel copying this file Windows might not work correctly. Are you sure you want to cancel this file?"
  93. IDS_SURECANCEL, "If you cancel now Windows might not work correctly. Are you sure you want to cancel?"
  94. //
  95. // Strings in default progress dialog.
  96. //
  97. IDS_FILEOP_FROM, "From %1"
  98. IDS_FILEOP_TO, "To %1"
  99. IDS_FILEOP_FILE, "%1"
  100. IDS_FILEOP_BACKUP, "Backup %1"
  101. IDS_COPY_CAPTION1, "%1 -- Copying Files..."
  102. IDS_COPY_CAPTION2, "Copying Files..."
  103. IDS_RENAME_CAPTION1, "%1 -- Renaming Files..."
  104. IDS_RENAME_CAPTION2, "Renaming Files..."
  105. IDS_DELETE_CAPTION1, "%1 -- Deleting Files..."
  106. IDS_DELETE_CAPTION2, "Deleting Files..."
  107. IDS_BACKUP_CAPTION1, "%1 -- Backup Files..."
  108. IDS_BACKUP_CAPTION2, "Backup Files..."
  109. IDS_COPY_INVALID_TARGET, "Cannot copy file to destination directory"
  110. IDS_CANCELFILEOPS, "Installation is not yet completed. Are you sure you want to cancel?"
  111. //
  112. // Strings for Add New Device Wizard
  113. //
  114. IDS_OEMTITLE "Install From Disk"
  115. IDS_NDW_PICKDEV1 "Select the manufacturer and model of your hardware device and then click Next. If you have a disk that contains the driver you want to install, click Have Disk."
  116. IDS_SELECT_DEVICE "Select Device"
  117. IDS_NDWSEL_MODELSLABEL "Model"
  118. IDS_NDWSEL_MFGLABEL "Manufacturer"
  119. IDS_DRIVER_IS_SIGNED "This driver is digitally signed."
  120. IDS_DRIVER_NOT_SIGNED "This driver is not digitally signed!"
  121. IDS_DRIVER_AUTHENTICODE_SIGNED
  122. "This driver has an Authenticode(tm) signature."
  123. //
  124. // Strings for Select Device dialog
  125. //
  126. IDS_INSTALLSTR0 "%s: The following models are compatible with your hardware. Click the one you want to set up, and then click OK."
  127. IDS_INSTALLSTR1 "Click the %s that matches your hardware, and then click OK. If you don't know which model you have, click OK."
  128. IDS_INSTALLCLASS " If your model is not on the list, click Show All Devices."
  129. IDS_INSTALLOEM " If you have an installation disk for this device, click Have Disk."
  130. IDS_INSTALLOEM1 " This list shows only what was found on the installation disk."
  131. //
  132. // Other device installer strings
  133. //
  134. IDS_DEVICEINSTALLER "Device installer error"
  135. IDS_RESOURCETYPE "Resource type"
  136. IDS_RESOURCESETTING "Setting"
  137. IDS_DEVRES_NO_CHANGE_MF "You cannot modify the resources for this device directly. To change its resources, change the resources of its parent device."
  138. IDS_BASICCONFIG "Basic configuration"
  139. IDS_OVERRIDECONFIG "Override configuration"
  140. IDS_CURRENTCONFIG "Current configuration"
  141. IDS_IRQ_FULL "Interrupt Request"
  142. IDS_DMA_FULL "Direct Memory Access"
  143. IDS_MEMORY_FULL "Memory Range"
  144. IDS_IO_FULL "Input/Output Range"
  145. IDS_IRQ_FULL_LC "interrupt request"
  146. IDS_DMA_FULL_LC "direct memory access"
  147. IDS_MEMORY_FULL_LC "memory range"
  148. IDS_IO_FULL_LC "input/output range"
  149. IDS_MEMORY "Memory Range"
  150. IDS_IO "I/O Range"
  151. IDS_DMA "DMA"
  152. IDS_IRQ "IRQ"
  153. IDS_UNKNOWN "Unknown"
  154. IDS_DEVRES_NO_RESOURCES "This device does not require any resources."
  155. IDS_DEVRES_NOALLOC_PROBLEM "This device isn't using any resources because it has a problem."
  156. IDS_DEVRES_NOALLOC_DISABLED "This device isn't using any resources because it is not currently enabled."
  157. IDS_DEVRES_NORMAL_CONFLICT "This device cannot find enough free resources that it can use.\n\nIf you want to use this device, you will need to disable one of the other devices on this system."
  158. IDS_DEVRES_NOMATCHINGLC "The resources this device is using do not match any of its known configurations. To assign resources manually for this device, click Set Configuration Manually."
  159. IDS_DEVRES_NOMODIFYTITLE "No Modifications Allowed"
  160. IDS_EDITRES_RANGEINSTR1 "Enter the %s you would like to set for this device.\n\n"
  161. IDS_EDITRES_RANGEINSTR2 "You may either enter a specific range and the nearest valid range will be automatically selected, or you may select a range using the up and down arrows."
  162. IDS_EDITRES_ENTRYERROR "Edit Resource Setting"
  163. IDS_EDITRES_VALIDATEERROR1 "The setting you entered, %s, is not valid for this device.\n\n"
  164. IDS_EDITRES_VALIDATEERROR2 "The next valid setting of %s has been chosen automatically.\n\n"
  165. IDS_EDITRES_VALIDATEERROR3 "Would you like to continue using the new setting?"
  166. IDS_ERROR_BADMEMTEXT "Either the starting or ending value you entered is invalid.\n\nCheck that the starting and ending values are between 0x00000000 and 0xFFFFFFFF."
  167. IDS_ERROR_BADIOTEXT "Either the starting or ending value you entered is invalid.\n\nCheck that the starting and ending values are between 0x0000 and 0xFFFF."
  168. IDS_ERROR_BADDMATEXT "The direct memory access (DMA) value entered is invalid.\n\nCheck that the DMA value is between 0 and 7."
  169. IDS_ERROR_BADIRQTEXT "The interrupt request (IRQ) value entered is invalid.\n\nPlease check that the IRQ value is between 0 and 15."
  170. IDS_EDITRES_CONFLICTWARNMSG "Warning: The setting you have chosen conflicts with another device.\n\nTo select a different resource setting, click No. To continue, click Yes."
  171. IDS_EDITRES_CONFLICTWARNTITLE "Conflict Warning"
  172. IDS_DEVRES_NOCONFLICTINFO "No conflict information is currently available."
  173. IDS_DEVRES_NOMODIFYSINGLE "This resource setting cannot be modified in this configuration. Try choosing a different configuration in the 'Settings Based On' box."
  174. IDS_DEVRES_NOMODIFYALL "You cannot modify the resources in this configuration. Try choosing a different configuration in the 'Settings Based On' box."
  175. IDS_DEVRES_NOMODIFYSELECT "First select the resource you wish to edit."
  176. IDS_EDITRES_SINGLEINSTR1 "Enter the %s you would like to set for this device.\n\n"
  177. IDS_EDITRES_SINGLEINSTR2 "You may either enter a specific value and the nearest valid value will be automatically selected, or you may select a value using the up and down arrows."
  178. IDS_EDITRES_TITLE "Edit %s"
  179. IDS_EDITRES_UNKNOWNCONFLICT "Windows cannot determine if the setting you have chosen conflicts with another device."
  180. IDS_EDITRES_UNKNOWNCONFLICTINGDEVS "Unknown"
  181. IDS_EDITRES_RESERVED "Warning: The setting you have chosen may not work due to the following reason(s):"
  182. IDS_EDITRES_RESERVEDRANGE "The resource is unavailable"
  183. IDS_EDITRES_NOCONFLICT "The setting you have chosen does not conflict with any other devices."
  184. IDS_EDITRES_NOCONFLICTINGDEVS "No devices are conflicting."
  185. IDS_MAKE_FORCED_TITLE "Creating a Forced Configuration"
  186. IDS_FORCEDCONFIG_WARN1 "You adjusted one or more resource settings manually.\n\n"
  187. IDS_FORCEDCONFIG_WARN2 "If you continue, these settings will be assigned to the device.\n\n"
  188. IDS_FORCEDCONFIG_WARN3 "Do you want to continue?"
  189. /*
  190. IDS_FORCEDCONFIG_WARN2 "If you continue, these settings will be assigned, and Windows will be unable to change them automatically to make room for hardware you install in the future.\n\n"
  191. IDS_FORCEDCONFIG_WARN3 "For example, if you install a Plug and Play device later, Windows might be unable to set it up because these settings are unavailable. "
  192. IDS_FORCEDCONFIG_WARN4 "If this happens, you can return to this Resources tab and check the Use Automatic Settings check box.\n\nDo you want to continue?"
  193. */
  194. IDS_FORCEDCONFIG_PARTIAL "Before you can use this forced configuration, resources marked with '?' must be explicitly set"
  195. IDS_EDITRES_DEVCONFLICT "Warning: The setting you have chosen conflicts with the following device(s):"
  196. IDS_DEVNAME_UNK "Unknown Device"
  197. IDS_CONFLICT_FMT "%1!s! %2!s! used by:\r\n"
  198. IDS_CONFLICT_UNAVAILABLE "%1!s! %2!s! not available.\r\n"
  199. IDS_CONFLICT_GENERALERROR "Windows cannot determine if there are any resource conflicts for this device."
  200. IDS_DEVRES_NOCONFLICTDEVS "No conflicts."
  201. IDS_LOGSEVINFORMATION "Information"
  202. IDS_LOGSEVWARNING "Warning"
  203. IDS_LOGSEVERROR "Error"
  204. IDS_LOGSEVFATALERROR "Fatal Error"
  205. IDS_GENERIC_DEVNAME "model"
  206. IDS_UNKNOWN_DRIVER "Unknown driver software package"
  207. IDS_DRIVER_NOMATCH1 "Installing this device driver is not recommended because Windows cannot verify that it is compatible with your hardware. "
  208. IDS_DRIVER_NOMATCH2 "If the driver is not compatible, your hardware will not work correctly and your computer might become unstable or stop working completely. "
  209. IDS_DRIVER_NOMATCH3 "Do you want to continue installing this driver?"
  210. IDS_DRIVER_UPDATE_TITLE "Update Driver Warning"
  211. IDS_DRIVERCACHE_DESC "Windows Driver Cabinet"
  212. IDS_NDW_NO_DRIVERS "(Unable to find any drivers for this device)"
  213. IDS_NDW_RETRIEVING_LIST "(Retrieving a list of all devices)"
  214. IDS_NDW_NODRIVERS_WARNING "Windows was unable to find any drivers for this device.\n\nIf you have a disk that contains the updated driver, or you wish to search in another location, click OK."
  215. IDS_NDW_SELECTDEVICE "Select the device driver you want to install for this hardware."
  216. IDS_VERSION " Version: %0d.%0d.%0d.%0d"
  217. IDS_DEVICE_VERIFY_MSG1 "Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future. Microsoft strongly "
  218. IDS_DEVICE_VERIFY_MSG2 "recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing."
  219. IDS_SOFTWARE_VERIFY_MSG1 "Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future. Microsoft strongly "
  220. IDS_SOFTWARE_VERIFY_MSG2 "recommends that you stop this installation now and contact the software vendor for software that has passed Windows Logo testing."
  221. IDS_YES "Yes"
  222. IDS_NO "No"
  223. //
  224. // MUI strings for shell
  225. //
  226. IDS_SHELL_INF_DESCRIPTION "Setup Information"
  227. IDS_SHELL_PNF_DESCRIPTION "Precompiled Setup Information"
  228. IDS_AUTHENTICITY "Publisher authenticity verified by "
  229. IDS_UNKNOWNPUBLISHER "Unknown Publisher"
  230. IDS_UNKNOWNPUBLISHERCERTISSUER "Unknown Publisher Certificate Issuer"
  231. IDS_FILE_NOT_FOUND "File not found or not valid format."
  232. IDS_SPC_PROVIDER "The Trust Provider is unknown or not configured properly."
  233. IDS_SPC_SUBJECT "The object to be verified is unknown to the Trust Provider."
  234. IDS_SPC_NO_SIGNATURE "Authenticode signature not found."
  235. IDS_SPC_BAD_SIGNATURE "The signature does not match the content of the signed message."
  236. IDS_SPC_BAD_FILE_DIGEST "Content does not match the signature."
  237. IDS_SPC_NO_VALID_SIGNER "Signature does not contain a valid signer."
  238. IDS_SPC_SIGNER_CERT "Signature does not contain a valid signing certificate."
  239. IDS_SPC_VALID_COUNTERSIGNER
  240. "Signature does not contain a valid counter signing certificate."
  241. IDS_SPC_CERT_EXPIRED "A certificate (signing or issuer) has expired."
  242. IDS_SPC_CERT_SIGNATURE "Certificate signature could not be verified using issuer's certificate."
  243. IDS_SPC_CHAINING "Unable to create certificate chain from the signing certificate to a root."
  244. IDS_SPC_UNTRUSTED_ROOT "The root certificate has not been enabled as a trusted root."
  245. IDS_SPC_UNTRUSTED_TEST_ROOT
  246. "The test root has not been enabled as a trusted root."
  247. IDS_SPC_INVALID_CERT_NESTING
  248. "Signing certificate's starting or ending time is outside one of its issuer's starting or ending time."
  249. IDS_SPC_INVALID_PURPOSE "A purpose specified in a certificate (signing or issuer) makes it invalid for Authenticode."
  250. IDS_SPC_INVALID_BASIC_CONSTRAINTS
  251. "A basic constraint of a certificate in the signature failed for Authenticode."
  252. IDS_SPC_INVALID_FINANCIAL
  253. "Certificate does not contain or does not meet the Authenticode financial extension."
  254. IDS_SPC_TIMESTAMP "The signature contains a time stamp. However, the time stamp could not be verified."
  255. IDS_SPC_CERT_REVOKED "Signing certificate or issuing certificate has been revoked."
  256. IDS_SPC_REVOCATION_ERROR
  257. "An error occurred while accessing online revocation server."
  258. IDS_SPC_SECURITY_SETTINGS
  259. "Signature is not trusted by Authenticode with the current policy settings."
  260. IDS_SPC_INVALID_EXTENSION
  261. "The extension in a certificate means the certificate can not be used for Authenticode."
  262. IDS_WRONG_USAGE "The root certificate has not been enabled for the requested use."
  263. IDS_ELEMENT_NOT_FOUND "The installed INF file does not contain digital signature information."
  264. IDS_SPC_OSS_ERROR "Error in ASN encoding (MSOSS error code: 0x%1)"
  265. IDS_SPC_UNKNOWN "Error in Authenticode (error code: 0x%1)"
  266. }
  267. //
  268. // Version resources
  269. //
  270. #include <ntverp.h>
  271. #define VER_FILETYPE VFT_DLL
  272. #define VER_FILESUBTYPE VFT2_UNKNOWN
  273. #define VER_FILEDESCRIPTION_STR "Windows Setup API"
  274. #define VER_INTERNALNAME_STR "SETUPAPI.DLL"
  275. #define VER_ORIGINALFILENAME_STR "SETUPAPI.DLL"
  276. #include <common.ver>
  277. //
  278. // Message resources
  279. //
  280. #include "msg.rc"
  281. //
  282. // Dialog resources
  283. //
  284. #include "prompt.dlg"