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.

362 lines
16 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: hotplug.rc
  8. //
  9. //--------------------------------------------------------------------------
  10. //Microsoft Developer Studio generated resource script.
  11. //
  12. #include "resource.h"
  13. #define APSTUDIO_READONLY_SYMBOLS
  14. /////////////////////////////////////////////////////////////////////////////
  15. //
  16. // Generated from the TEXTINCLUDE 2 resource.
  17. //
  18. #define APSTUDIO_HIDDEN_SYMBOLS
  19. #include "windows.h"
  20. #undef APSTUDIO_HIDDEN_SYMBOLS
  21. #include "commctrl.h"
  22. #include "setupapi.h"
  23. #include "resource.h"
  24. #include "ntverp.h"
  25. /////////////////////////////////////////////////////////////////////////////
  26. #undef APSTUDIO_READONLY_SYMBOLS
  27. /////////////////////////////////////////////////////////////////////////////
  28. // English (U.S.) resources
  29. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
  30. #ifdef _WIN32
  31. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  32. #pragma code_page(1252)
  33. #endif //_WIN32
  34. #ifdef APSTUDIO_INVOKED
  35. /////////////////////////////////////////////////////////////////////////////
  36. //
  37. // TEXTINCLUDE
  38. //
  39. 1 TEXTINCLUDE DISCARDABLE
  40. BEGIN
  41. "resource.h\0"
  42. END
  43. 2 TEXTINCLUDE DISCARDABLE
  44. BEGIN
  45. "#include ""winres.h""\r\n"
  46. "\0"
  47. END
  48. 3 TEXTINCLUDE DISCARDABLE
  49. BEGIN
  50. "1 TYPELIB ""blkdrv.tlb""\r\n"
  51. "\0"
  52. END
  53. #endif // APSTUDIO_INVOKED
  54. //
  55. // Version information
  56. //
  57. #include <ntverp.h>
  58. #define VER_FILETYPE VFT_DLL
  59. #define VER_FILESUBTYPE VFT_UNKNOWN
  60. #define VER_FILEDESCRIPTION_STR "Safely Remove Hardware applet"
  61. #define VER_INTERNALNAME_STR "hotplug"
  62. #define VER_ORIGINALFILENAME_STR "hotplug.dll"
  63. #include "common.ver"
  64. /////////////////////////////////////////////////////////////////////////////
  65. //
  66. // Dialog
  67. //
  68. DLG_DEVTREE DIALOG DISCARDABLE 0, 0, 278, 245
  69. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_3DLOOK | DS_CONTEXTHELP |
  70. WS_POPUP | WS_CAPTION | WS_SYSMENU
  71. CAPTION "Safely Remove Hardware"
  72. FONT 8, "MS Shell Dlg"
  73. BEGIN
  74. LTEXT "",IDC_MACHINENAME,7,0,248,8
  75. ICON IDI_HOTPLUGICON,IDC_NOHELP1,7,10,20,20
  76. LTEXT "Select the device you want to unplug or eject, and then click Stop. When Windows notifies you that it is safe to do so unplug the device from your computer.",
  77. IDC_NOHELP2,36,12,234,24
  78. LTEXT "&Hardware devices:",IDC_HDWDEVICES,7,42,248,8
  79. CONTROL "",IDC_DEVICETREE,"SysTreeView32",TVS_HASBUTTONS |
  80. TVS_HASLINES | TVS_DISABLEDRAGDROP | TVS_SHOWSELALWAYS |
  81. WS_BORDER | WS_GROUP | WS_TABSTOP,7,52,264,102
  82. LTEXT "",IDC_DEVICEDESC,7,156,264,16
  83. PUSHBUTTON "&Properties",IDC_PROPERTIES,158,178,55,14
  84. PUSHBUTTON "&Stop",IDC_STOPDEVICE,216,178,55,14
  85. CTEXT "",IDC_NOHELP3,7,200,264,1,SS_SUNKEN | NOT WS_GROUP
  86. PUSHBUTTON "&Close",IDCLOSE,216,224,55,14
  87. CONTROL "&Display device components",IDC_VIEWOPTION,"Button",
  88. BS_AUTOCHECKBOX | WS_TABSTOP,7,208,110,12
  89. END
  90. DLG_CONFIRMREMOVE DIALOG DISCARDABLE 32, 10, 256, 148
  91. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_3DLOOK | DS_CONTEXTHELP |
  92. WS_POPUP | WS_CAPTION | WS_SYSMENU
  93. CAPTION "Stop a Hardware device"
  94. FONT 8, "MS Shell Dlg"
  95. BEGIN
  96. LTEXT "Confirm devices to be stopped, Choose OK to continue.",
  97. IDC_NOHELP1,7,8,241,14
  98. LTEXT "Windows will attempt to stop the following devices. After the devices are stopped they may be removed safely.",
  99. IDC_NOHELP2,7,22,240,18
  100. PUSHBUTTON "OK",IDOK,144,127,50,14,WS_GROUP
  101. PUSHBUTTON "Cancel",IDCANCEL,198,127,50,14
  102. CONTROL "",IDC_REMOVELIST,"SysListView32",LVS_REPORT |
  103. LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS |
  104. LVS_ALIGNLEFT | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER |
  105. WS_BORDER | WS_GROUP | WS_TABSTOP,8,45,240,78
  106. END
  107. /////////////////////////////////////////////////////////////////////////////
  108. //
  109. // Icon
  110. //
  111. // Icon with lowest ID value placed first to ensure application icon
  112. // remains consistent on all systems.
  113. IDI_HOTPLUGICON ICON DISCARDABLE "HotPlug.ico"
  114. IDI_UNDOCKICON ICON DISCARDABLE "ejectpc.ico"
  115. IDI_BLOCKDRIVER ICON DISCARDABLE "dblock.ico"
  116. /////////////////////////////////////////////////////////////////////////////
  117. //
  118. // REGISTRY
  119. //
  120. IDR_BLKDRV REGISTRY DISCARDABLE "blkdrv.rgs"
  121. #ifdef APSTUDIO_INVOKED
  122. /////////////////////////////////////////////////////////////////////////////
  123. //
  124. // TEXTINCLUDE
  125. //
  126. 1 TEXTINCLUDE DISCARDABLE
  127. BEGIN
  128. "resrc1.h\0"
  129. END
  130. 2 TEXTINCLUDE DISCARDABLE
  131. BEGIN
  132. "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
  133. "#include ""windows.h""\r\n"
  134. "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
  135. "#include ""commctrl.h""\r\n"
  136. "#include ""setupapi.h""\r\n"
  137. "#include ""resource.h""\r\n"
  138. "#include ""ntverp.h""\r\n"
  139. "\0"
  140. END
  141. 3 TEXTINCLUDE DISCARDABLE
  142. BEGIN
  143. "\r\n"
  144. "\0"
  145. END
  146. #endif // APSTUDIO_INVOKED
  147. /////////////////////////////////////////////////////////////////////////////
  148. //
  149. // DESIGNINFO
  150. //
  151. #ifdef APSTUDIO_INVOKED
  152. GUIDELINES DESIGNINFO DISCARDABLE
  153. BEGIN
  154. DLG_SURPRISEWARN, DIALOG
  155. BEGIN
  156. LEFTMARGIN, 7
  157. RIGHTMARGIN, 248
  158. BOTTOMMARGIN, 219
  159. END
  160. END
  161. #endif // APSTUDIO_INVOKED
  162. /////////////////////////////////////////////////////////////////////////////
  163. //
  164. // String Table
  165. //
  166. STRINGTABLE DISCARDABLE
  167. BEGIN
  168. IDS_HOTPLUGNAME "Hot Pluggable Devices"
  169. IDS_HOTPLUGINFO "Hot Pluggable Devices Control"
  170. IDS_UNKNOWN "Unknown Device"
  171. IDS_PROB_NONE "This device is working properly."
  172. IDS_PROB_UNKNOWN "Device status is unknown."
  173. IDS_LOCATION "at %s"
  174. IDS_LOCATION_NOUINUMBER "on %s"
  175. IDS_AT "at "
  176. IDS_UI_NUMBER_DESC_FORMAT
  177. "Location %1!u!"
  178. END
  179. STRINGTABLE DISCARDABLE
  180. BEGIN
  181. IDS_VETOED_EJECT_TITLE "Problem Ejecting %s"
  182. IDS_VETOED_REMOVAL_TITLE "Problem Stopping %s"
  183. IDS_VETOED_UNDOCK_TITLE "Problem Undocking From %s"
  184. IDS_VETOED_STANDBY_TITLE "System Standby Failed"
  185. IDS_VETOED_HIBERNATION_TITLE "System Hibernation Failed"
  186. IDS_REMOVAL_COMPLETE_TITLE
  187. "Safe To Remove Hardware"
  188. IDS_UNDOCK_COMPLETE_TITLE
  189. "Undock Complete"
  190. END
  191. STRINGTABLE DISCARDABLE
  192. BEGIN
  193. IDS_STOP "&Stop"
  194. IDS_PROPERTIES "&Properties"
  195. END
  196. STRINGTABLE DISCARDABLE
  197. BEGIN
  198. // The folowing string is an example time that is overlayed in the
  199. // taskbar bitmat. This example time should be localized.
  200. IDS_TASKBARTEXT "2:01 PM"
  201. IDS_CONFIRM_STOP "Windows will stop the following devices. After the devices are stopped they may be removed safely."
  202. IDS_UNDOCK_COMPLETE_TEXT
  203. "Windows has finished undocking the system. If you need to remove the system from the %s, please do so now."
  204. IDS_REMOVAL_COMPLETE_TEXT
  205. "The '%s' device can now be safely removed from the system."
  206. IDS_BLOCKDRIVER_TITLE "Devices or applications disabled"
  207. IDS_BLOCKDRIVER_MESSAGE "Applications or devices on this computer use drivers that will cause Windows to become unstable. Windows has prevented these drivers from loading. Click here for more details."
  208. IDS_BLOCKDRIVER_FORMAT "'%s' will cause Windows to become unstable. Windows has prevented these drivers from loading. Click here for more details."
  209. END
  210. STRINGTABLE DISCARDABLE
  211. BEGIN
  212. IDS_VETO_UNKNOWN "The device '%s' cannot be stopped because of an unknown error. Since this device is still being used, do not remove it."
  213. IDS_VETO_LEGACYDEVICE "The device '%s' cannot be stopped because it is using a driver that does not support Plug and Play. Since this device is still being used, do not remove it."
  214. IDS_VETO_PENDINGCLOSE "This device cannot be stopped because one of its components (%s) was unplugged when a program was still using it. Close that program and then attempt to stop this device again."
  215. IDS_VETO_WINDOWSAPP "The application '%s' is preventing this device from being stopped. Close the application and then try to stop the device again."
  216. IDS_VETO_WINDOWSSERVICE "The service '%s' is preventing this device from being stopped. Try stopping this service and then try to stop the device again."
  217. IDS_VETO_OUTSTANDINGOPEN
  218. "The device '%s' cannot be stopped because a program is still accessing it."
  219. IDS_VETO_DEVICE "The device '%s' cannot be stopped right now. Try stopping the device again later."
  220. IDS_VETO_DRIVER "The driver '%s' is preventing this device from being stopped right now. Try stopping the device again later."
  221. IDS_VETO_ILLEGALDEVICEREQUEST
  222. "The '%s' device is not removable and cannot be ejected or unplugged."
  223. IDS_VETO_INSUFFICIENTPOWER
  224. "This device can not eject at this time as there will be no remaining power sources (batteries) to keep the computer running after the %s has been ejected. Please shut down the computer and then eject it."
  225. IDS_VETO_NONDISABLEABLE "The %s device is critical to the operation of the computer and cannot be disabled."
  226. IDS_VETO_LEGACYDRIVER "The service '%s' is does not support Plug and Play and cannot be stopped. Contact the manufacturer of the driver for an update."
  227. IDS_VETO_INSUFFICIENT_RIGHTS
  228. "You cannot eject the %s because you do not have sufficient security privileges to do so. Please contact your administrator to obtain these privileges."
  229. IDS_VETO_UNKNOWNWINDOWSAPP
  230. "An application is preventing this device from being stopped. Close all applications and then try to stop the device again."
  231. IDS_DOCKVETO_UNKNOWN "You cannot eject your computer because one of the devices in the docking station, '%s', cannot be stopped because of an unknown error. Since this device is still being used, do not remove the computer."
  232. IDS_DOCKVETO_LEGACYDEVICE
  233. "You cannot eject your computer because one of the devices in the docking station, '%s', cannot be stopped because it is using a driver that does not support Plug and Play. Since this device is still being used, do not remove the computer."
  234. IDS_DOCKVETO_PENDINGCLOSE
  235. "You cannot eject your computer because one of the devices in the docking station, '%s', was unplugged when a program was still using it. Close that program and then attempt to eject the computer."
  236. IDS_DOCKVETO_WINDOWSAPP "The application '%s' is preventing your computer from ejecting because it is using a device in the docking station. Close the application and then try again."
  237. IDS_DOCKVETO_WINDOWSSERVICE
  238. "The service '%s' is preventing your computer from ejecting. Try stopping this service and then try to eject the computer again."
  239. IDS_DOCKVETO_OUTSTANDINGOPEN
  240. "You cannot eject your computer because one of the devices in the docking station, '%s', cannot be stopped because a program is still accessing it."
  241. IDS_DOCKVETO_DEVICE "You cannot eject your computer because one of the devices in the docking station, '%s', cannot be stopped right now. Try closing all applications and ejecting the computer again later."
  242. IDS_DOCKVETO_DRIVER "You cannot eject your computer because the driver '%s' is preventing a device from being stopped right now. Try closing all applications and ejecting the computer later."
  243. IDS_DOCKVETO_ILLEGALDEVICEREQUEST
  244. "You cannot eject your computer because one of the devices in the docking station, '%s', device is not removable and cannot be ejected or unplugged."
  245. IDS_DOCKVETO_INSUFFICIENTPOWER
  246. "Your computer can not eject at this time as there will be no remaining power sources (batteries) to keep the computer running after the %s has been ejected. Please shut down the computer and then eject it."
  247. IDS_DOCKVETO_NONDISABLEABLE
  248. "You cannot eject your computer because one of the devices in the docking station, %s, is critical to the operation of the computer and cannot be disabled."
  249. IDS_DOCKVETO_LEGACYDRIVER
  250. "You cannot eject your computer because the service '%s', which controls one of the devices in the docking station, does not support Plug and Play and cannot be stopped. Contact the manufacturer of the driver for an update."
  251. IDS_DOCKVETO_INSUFFICIENT_RIGHTS
  252. "You cannot eject your computer because you do not have sufficient security privileges to do so. Please contact your administrator to obtain these privileges"
  253. IDS_DOCKVETO_WARM_EJECT "Your computer failed to eject. Please close all applications and try again. You may need to enable hibernate support in the Power Options control panel."
  254. IDS_DOCKVETO_UNKNOWNWINDOWSAPP
  255. "An application is preventing your computer from ejecting because it is using a device in the docking station. Close all applications and then try again."
  256. IDS_SLEEPVETO_UNKNOWN "%s"
  257. IDS_SLEEPVETO_LEGACYDEVICE
  258. "%s"
  259. IDS_SLEEPVETO_PENDINGCLOSE
  260. "%s"
  261. IDS_SLEEPVETO_WINDOWSAPP "%s"
  262. IDS_SLEEPVETO_WINDOWSSERVICE
  263. "The service '%s' is preventing the machine from entering standby. Try stopping this service and try again."
  264. IDS_SLEEPVETO_OUTSTANDINGOPEN
  265. "%s"
  266. IDS_SLEEPVETO_DEVICE "The device driver for the '%s' device is preventing the machine from entering standby. Please close all applications and try again. If the problem persists, you may need to update this driver."
  267. IDS_SLEEPVETO_DRIVER "%s"
  268. IDS_SLEEPVETO_ILLEGALDEVICEREQUEST
  269. "%s"
  270. IDS_SLEEPVETO_INSUFFICIENTPOWER
  271. "%s"
  272. IDS_SLEEPVETO_NONDISABLEABLE
  273. "%s"
  274. IDS_SLEEPVETO_LEGACYDRIVER
  275. "%s"
  276. IDS_SLEEPVETO_INSUFFICIENT_RIGHTS
  277. ""
  278. IDS_SLEEPVETO_UNKNOWNWINDOWSAPP
  279. ""
  280. IDS_HIBERNATEVETO_UNKNOWN
  281. "%s"
  282. IDS_HIBERNATEVETO_LEGACYDEVICE
  283. "%s"
  284. IDS_HIBERNATEVETO_PENDINGCLOSE
  285. "%s"
  286. IDS_HIBERNATEVETO_WINDOWSAPP
  287. "%s"
  288. IDS_HIBERNATEVETO_WINDOWSSERVICE
  289. "The service '%s' is preventing the machine from entering hibernation. Try stopping this service and try again."
  290. IDS_HIBERNATEVETO_OUTSTANDINGOPEN
  291. "%s"
  292. IDS_HIBERNATEVETO_DEVICE
  293. "The device driver for the '%s' device is preventing the machine from entering hibernation. Please close all applications and try again. If the problem persists, you may need to update this driver."
  294. IDS_HIBERNATEVETO_DRIVER
  295. "%s"
  296. IDS_HIBERNATEVETO_ILLEGALDEVICEREQUEST
  297. "%s"
  298. IDS_HIBERNATEVETO_INSUFFICIENTPOWER
  299. "%s"
  300. IDS_HIBERNATEVETO_NONDISABLEABLE
  301. "%s"
  302. IDS_HIBERNATEVETO_LEGACYDRIVER
  303. "%s"
  304. IDS_HIBERNATEVETO_INSUFFICIENT_RIGHTS
  305. ""
  306. IDS_HIBERNATEVETO_UNKNOWNWINDOWSAPP
  307. ""
  308. END
  309. /////////////////////////////////////////////////////////////////////////////
  310. //
  311. // Generated from the TEXTINCLUDE 3 resource.
  312. //
  313. 1 TYPELIB "blkdrv.tlb"
  314. /////////////////////////////////////////////////////////////////////////////
  315. #endif // not APSTUDIO_INVOKED