Source code of Windows XP (NT5)
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.

169 lines
9.3 KiB

  1. #include <windows.h>
  2. #include <mmddk.h>
  3. //#include <ver.h>
  4. #include "sulib.h"
  5. #include "drivers.h"
  6. #include <cphelp.h>
  7. #include "drivers.rcv"
  8. DRIVERS_ICON ICON LOADONCALL MOVEABLE DISCARDABLE "drivers.ico"
  9. STRINGTABLE PRELOAD DISCARDABLE MOVEABLE
  10. BEGIN
  11. IDS_OEMSETUP ,"oemsetup.inf"
  12. IDS_LASTQUERY ,"LastTime"
  13. IDS_SYSTEM ,"0:system32"
  14. IDS_SYSTEM_DRIVERS ,"0:system32\\drivers"
  15. IDS_NAME ,"D&rivers"
  16. IDS_RESTART_ADD ,"The %s driver has been added. For the new driver to take effect, you must quit and restart Windows NT."
  17. IDS_RESTART_REM ,"The %s driver has been removed. To remove the driver from your system, you must quit and restart Windows NT."
  18. IDS_INFO ,"Installs, removes, and configures drivers"
  19. IDS_NOINF ,"Cannot find the MMDRIVER.INF file needed to install drivers. The file may be damaged or may not be in your Windows NT SYSTEM32 directory.\n\nCopy the original file on Windows NT Disk 1 to your SYSTEM32 directory.
  20. "
  21. IDS_DEFDRIVE ,"A:\\"
  22. IDS_OUTOFDISK ,"Not enough disk space to copy the driver file.\n\nClose the Drivers dialog box, delete one or more files to increase available disk space, and then try again."
  23. IDS_DISKS ,"source media descriptions"
  24. IDS_UNLISTED ,"Insert the disk with the unlisted, updated, or vendor-provided driver in:"
  25. IDS_KNOWN ,"Insert %s or the disk with the updated\n%s driver in:"
  26. IDS_FILE_ERROR ,"File Installation Error"
  27. IDS_UNABLE_TOINSTALL ,"Unable to install the driver file. There may be a problem with your system. Check your system integrity or contact your system administrator."
  28. IDS_UPDATED ,"Unlisted or Updated Driver"
  29. IDS_ERROR + ERROR_OUTOFMEMORY ,"Not enough memory available to perform this operation.\n\nQuit one or more applications to increase available memory, and then try again."
  30. IDS_FILEINUSEREM ,"You cannot update to a new driver until you remove the old one. Remove the old driver, quit and restart Windows NT, and then try again."
  31. IDS_FILEINUSEADD ,"The old driver is still being used by Windows NT. You must quit and restart Windows NT before you can add the updated driver."
  32. IDS_DRIVERDESC ,"drivers.desc"
  33. IDS_RELATEDDESC ,"related.desc"
  34. IDS_INSTALLDRIVERS ,"Installable.drivers"
  35. IDS_INSTALLDRIVERS32 ,"Installable.drivers32"
  36. IDS_BOOT ,"Boot"
  37. IDS_USERINSTALLDRIVERS ,"Userinstallable.drivers"
  38. IDS_REMOVE ,"Remove"
  39. IDS_REMOVEORNOTSTRICT ,"This %s driver is required by the system. If you remove it, your system may not work properly.\n\nAre you sure you want to remove it?"
  40. IDS_REMOVEORNOT ,"Are you sure you want to remove\nthe %s driver?"
  41. IDS_OUT_OF_REMOVE_SPACE ,"Out of remove 'undo' space."
  42. IDS_INSTALLING_DRIVERS ,"Cannot load the %s driver. The driver file may be missing. Try installing the driver again, or contact your system administrator."
  43. IDS_NO_DESCRIPTION ,"[No Driver Description]"
  44. IDS_ERRORBOX ,"Driver Error"
  45. IDS_CONFIGURE_DRIVER ,"Installation Error"
  46. IDS_CLOSE ,"Close"
  47. IDS_TOO_MANY_DRIVERS ,"Cannot install more drivers of the type: %s. Remove an unused driver, and then try again."
  48. IDS_APPNAME ,"Install Drivers"
  49. IDS_DRIVERS ,DRIVERS_SECTION
  50. IDS_SETUPINF ,"mmdriver.inf"
  51. IDS_CONTROLINI ,"control.ini"
  52. IDS_SYSINI ,"system.ini"
  53. IDS_MCI ,MCI_SECTION
  54. IDS_VALID_DRIVER_TYPES ,"WAVE MIDI AUX KERNEL"
  55. IDS_CONTROL_HLP ,"control.hlp"
  56. IDS_DRIVER_EXISTS ,"The required %s driver is already on the system. Do you want to use the current driver or install a new driver?"
  57. IDS_INSUFFICIENT_PRIVILEGE ,"You have insufficient privilege to install or remove kernel driver file %s"
  58. IDS_CANTADD ,"You have insufficient privilege to add or remove a driver"
  59. IDS_CANNOT_RESTART_PRIVILEGE ,"You have insufficient privilege to restart the system"
  60. IDS_CANNOT_RESTART_UNKNOWN ,"Due to an unexpected error the system cannot be restarted"
  61. IDS_DRIVER_CONFIG_ERROR ,"Cannot install the driver %s. Check your hardware configuration"
  62. END
  63. DLG_KNOWN DIALOG 10, 18, 220, 126
  64. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  65. CAPTION "Add"
  66. FONT 8, "MS Shell Dlg"
  67. BEGIN
  68. LTEXT "&List of Drivers", ID_DRVSTRING, 6, 4, 170, 8
  69. LISTBOX LB_AVAILABLE, 5, 15, 159, 92, LBS_SORT | WS_VSCROLL | LBS_DISABLENOSCROLL | WS_TABSTOP
  70. DEFPUSHBUTTON "OK", IDOK, 175, 9, 40, 14, WS_GROUP
  71. PUSHBUTTON "Cancel", IDCANCEL, 175, 26, 40, 14
  72. PUSHBUTTON "&Help", IDH_DLG_ADD_DRIVERS, 175, 43, 40, 14
  73. END
  74. DLG_INSTALLED DIALOG 10, 18, 227, 112
  75. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  76. CAPTION "Drivers"
  77. FONT 8, "MS Shell Dlg"
  78. BEGIN
  79. LTEXT "&Installed Drivers", 100, 6, 2, 160, 13
  80. LISTBOX LB_INSTALLED, 6, 16, 160, 92, LBS_SORT | WS_VSCROLL | LBS_DISABLENOSCROLL | WS_TABSTOP
  81. DEFPUSHBUTTON "Cancel", IDCANCEL, 175, 6, 40, 14, WS_GROUP
  82. PUSHBUTTON "&Add...", ID_ADD, 175, 23, 40, 14
  83. PUSHBUTTON "&Remove", ID_REMOVE, 175, 40, 40, 14
  84. PUSHBUTTON "&Setup...", ID_CONFIGURE, 175, 57, 40, 14
  85. PUSHBUTTON "&Help", IDH_CHILD_DRIVERS, 175, 74, 40, 14
  86. END
  87. DLG_INSERTDISK DIALOG 10, 18, 190, 75
  88. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  89. CAPTION "Install Driver"
  90. FONT 8, "MS Shell Dlg"
  91. BEGIN
  92. LTEXT "", ID_TEXT, 10, 5, 130, 32
  93. EDITTEXT ID_EDIT, 10, 42, 125, 14, ES_AUTOHSCROLL | ES_OEMCONVERT
  94. DEFPUSHBUTTON "OK", IDOK, 145, 6, 40, 14, WS_GROUP
  95. PUSHBUTTON "Cancel", IDCANCEL, 145, 23, 40, 14
  96. PUSHBUTTON "&Browse...", IDS_BROWSE, 145, 40, 40, 14
  97. PUSHBUTTON "&Help", IDH_DLG_INSERT_DISK, 145, 57, 40, 14
  98. END
  99. DLG_BROWSE DIALOG 46, 21, 158, 165
  100. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | WS_POPUP | WS_VISIBLE
  101. CAPTION "Browse"
  102. FONT 8, "MS Shell Dlg"
  103. BEGIN
  104. LTEXT "", ctlLast+1, 5, 5, 147, 30
  105. LTEXT "&Directories:", -1, 5, 40, 92, 9, NOT WS_GROUP
  106. LTEXT "", stc1, 5, 50, 120, 8, NOT WS_GROUP
  107. LISTBOX lst2, 5, 62, 92, 64, LBS_SORT | LBS_OWNERDRAWFIXED |
  108. LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT |
  109. LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
  110. LTEXT "Dri&ves:", -1, 5, 135, 92, 9, NOT WS_GROUP
  111. COMBOBOX cmb2, 5, 145, 92, 68, CBS_DROPDOWNLIST |
  112. CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT |
  113. CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP
  114. DEFPUSHBUTTON "OK", IDOK, 104, 63, 50, 14, WS_GROUP
  115. PUSHBUTTON "Cancel", IDCANCEL, 104, 81, 50, 14, WS_GROUP
  116. PUSHBUTTON "Net&work...", psh14, 104, 145, 50, 14, WS_GROUP
  117. PUSHBUTTON "&Help", IDH_DLG_BROWSE, 104, 121, 50, 14, WS_GROUP
  118. EDITTEXT edt1, -100, -100, 10, 10, ES_LOWERCASE | ES_AUTOHSCROLL |
  119. NOT WS_TABSTOP
  120. LISTBOX lst1, -100, -100, 10, 10, LBS_EXTENDEDSEL
  121. CONTROL "", chx1, "Button", BS_AUTOCHECKBOX, -100, -100, 10, 10
  122. LTEXT "", stc2, -100, -100, 10, 10
  123. COMBOBOX cmb1, -100, -100, 10, 10, CBS_DROPDOWNLIST |
  124. CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL
  125. END
  126. DLG_UPDATE DIALOG 54, 36, 220, 85
  127. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
  128. CAPTION "Add Unlisted or Updated Driver"
  129. FONT 8, "MS Shell Dlg"
  130. BEGIN
  131. LTEXT "&List of Drivers:", ID_LIST, 10, 18, 124, 8
  132. LISTBOX LB_UNLISTED, 6, 16, 160, 68, LBS_SORT |
  133. WS_VSCROLL | WS_TABSTOP | LBS_DISABLENOSCROLL
  134. DEFPUSHBUTTON "OK", IDOK, 175, 6, 40, 14, WS_GROUP
  135. PUSHBUTTON "Cancel", IDCANCEL, 175, 23, 40, 14
  136. PUSHBUTTON "&Help", IDH_DLG_ADD_UNKNOWN, 175, 40, 40, 14
  137. END
  138. DLG_RESTART DIALOG 10, 10, 225, 70
  139. CAPTION "System Setting Change"
  140. STYLE DS_MODALFRAME | WS_CAPTION | WS_POPUP | WS_VISIBLE | WS_SYSMENU
  141. FONT 8, "MS Shell Dlg"
  142. BEGIN
  143. LTEXT "Your driver settings have changed. You will need to exit and restart Windows NT so that the new settings can take effect.", IDS_RESTARTTEXT, 30, 6, 170, 40, WS_CHILD
  144. DEFPUSHBUTTON "&Don't Restart Now", IDCANCEL, 30, 51, 80, 14, WS_GROUP
  145. PUSHBUTTON "&Restart Now", IDOK, 120, 51, 80, 14
  146. ICON 32515 -1, 8, 14, 16, 21
  147. END
  148. DLG_EXISTS DIALOG LOADONCALL MOVEABLE DISCARDABLE 8, 12, 180, 80
  149. CAPTION "Driver Exists"
  150. FONT 8, "MS Shell Dlg"
  151. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  152. BEGIN
  153. ICON 32515 -1, 8, 14, 16, 21
  154. LTEXT "", ID_STATUS2, 34, 8, 126, 35, WS_CHILD
  155. DEFPUSHBUTTON "Cu&rrent", ID_CURRENT, 70, 50, 40, 14
  156. PUSHBUTTON "&New", ID_NEW, 20, 50, 40, 14, WS_GROUP
  157. PUSHBUTTON "Cancel", IDCANCEL, 120, 50, 40, 14
  158. END