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.

363 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. ICON IDI_HOTPLUGICON,IDC_NOHELP1,7,10,20,20
  75. 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.",
  76. IDC_NOHELP2,36,12,234,24
  77. LTEXT "&Hardware devices:",IDC_HDWDEVICES,7,42,248,8
  78. CONTROL "",IDC_DEVICETREE,"SysTreeView32",TVS_HASBUTTONS |
  79. TVS_HASLINES | TVS_DISABLEDRAGDROP | TVS_SHOWSELALWAYS |
  80. WS_BORDER | WS_GROUP | WS_TABSTOP,7,52,264,102
  81. LTEXT "",IDC_DEVICEDESC,7,156,264,16
  82. PUSHBUTTON "&Properties",IDC_PROPERTIES,158,178,55,14
  83. PUSHBUTTON "&Stop",IDC_STOPDEVICE,216,178,55,14
  84. CTEXT "",IDC_NOHELP3,7,200,264,1,SS_SUNKEN | NOT WS_GROUP
  85. PUSHBUTTON "&Close",IDCLOSE,216,224,55,14
  86. CONTROL "&Display device components",IDC_VIEWOPTION,"Button",
  87. BS_AUTOCHECKBOX | WS_TABSTOP,7,208,110,12
  88. END
  89. DLG_CONFIRMREMOVE DIALOG DISCARDABLE 32, 10, 256, 148
  90. STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_3DLOOK | DS_CONTEXTHELP |
  91. WS_POPUP | WS_CAPTION | WS_SYSMENU
  92. CAPTION "Stop a Hardware device"
  93. FONT 8, "MS Shell Dlg"
  94. BEGIN
  95. LTEXT "Confirm devices to be stopped, Choose OK to continue.",
  96. IDC_NOHELP1,7,8,241,14
  97. LTEXT "Windows will attempt to stop the following devices. After the devices are stopped they may be removed safely.",
  98. IDC_NOHELP2,7,22,240,18
  99. PUSHBUTTON "OK",IDOK,144,127,50,14,WS_GROUP
  100. PUSHBUTTON "Cancel",IDCANCEL,198,127,50,14
  101. CONTROL "",IDC_REMOVELIST,"SysListView32",LVS_REPORT |
  102. LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SHAREIMAGELISTS |
  103. LVS_ALIGNLEFT | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER |
  104. WS_BORDER | WS_GROUP | WS_TABSTOP,8,45,240,78
  105. END
  106. /////////////////////////////////////////////////////////////////////////////
  107. //
  108. // Icon
  109. //
  110. // Icon with lowest ID value placed first to ensure application icon
  111. // remains consistent on all systems.
  112. IDI_HOTPLUGICON ICON DISCARDABLE "HotPlug.ico"
  113. IDI_UNDOCKICON ICON DISCARDABLE "ejectpc.ico"
  114. IDI_BLOCKDRIVER ICON DISCARDABLE "dblock.ico"
  115. /////////////////////////////////////////////////////////////////////////////
  116. //
  117. // REGISTRY
  118. //
  119. IDR_BLKDRV REGISTRY DISCARDABLE "blkdrv.rgs"
  120. #ifdef APSTUDIO_INVOKED
  121. /////////////////////////////////////////////////////////////////////////////
  122. //
  123. // TEXTINCLUDE
  124. //
  125. 1 TEXTINCLUDE DISCARDABLE
  126. BEGIN
  127. "resrc1.h\0"
  128. END
  129. 2 TEXTINCLUDE DISCARDABLE
  130. BEGIN
  131. "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
  132. "#include ""windows.h""\r\n"
  133. "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
  134. "#include ""commctrl.h""\r\n"
  135. "#include ""setupapi.h""\r\n"
  136. "#include ""resource.h""\r\n"
  137. "#include ""ntverp.h""\r\n"
  138. "\0"
  139. END
  140. 3 TEXTINCLUDE DISCARDABLE
  141. BEGIN
  142. "\r\n"
  143. "\0"
  144. END
  145. #endif // APSTUDIO_INVOKED
  146. /////////////////////////////////////////////////////////////////////////////
  147. //
  148. // DESIGNINFO
  149. //
  150. #ifdef APSTUDIO_INVOKED
  151. GUIDELINES DESIGNINFO DISCARDABLE
  152. BEGIN
  153. DLG_SURPRISEWARN, DIALOG
  154. BEGIN
  155. LEFTMARGIN, 7
  156. RIGHTMARGIN, 248
  157. BOTTOMMARGIN, 219
  158. END
  159. END
  160. #endif // APSTUDIO_INVOKED
  161. /////////////////////////////////////////////////////////////////////////////
  162. //
  163. // String Table
  164. //
  165. STRINGTABLE DISCARDABLE
  166. BEGIN
  167. IDS_HOTPLUGNAME "Hot Pluggable Devices"
  168. IDS_HOTPLUGINFO "Hot Pluggable Devices Control"
  169. IDS_UNKNOWN "Unknown Device"
  170. IDS_PROB_NONE "This device is working properly."
  171. IDS_PROB_UNKNOWN "Device status is unknown."
  172. IDS_LOCATION "at %s"
  173. IDS_LOCATION_NOUINUMBER "on %s"
  174. IDS_AT "at "
  175. IDS_UI_NUMBER_DESC_FORMAT
  176. "Location %1!u!"
  177. END
  178. STRINGTABLE DISCARDABLE
  179. BEGIN
  180. IDS_VETOED_EJECT_TITLE "Problem Ejecting %s"
  181. IDS_VETOED_REMOVAL_TITLE "Problem Stopping %s"
  182. IDS_VETOED_UNDOCK_TITLE "Problem Undocking From %s"
  183. IDS_VETOED_STANDBY_TITLE "System Standby Failed"
  184. IDS_VETOED_HIBERNATION_TITLE "System Hibernation Failed"
  185. IDS_REMOVAL_COMPLETE_TITLE
  186. "Safe To Remove Hardware"
  187. IDS_UNDOCK_COMPLETE_TITLE
  188. "Undock Complete"
  189. END
  190. STRINGTABLE DISCARDABLE
  191. BEGIN
  192. IDS_STOP "&Stop"
  193. IDS_PROPERTIES "&Properties"
  194. END
  195. STRINGTABLE DISCARDABLE
  196. BEGIN
  197. IDS_CONFIRM_STOP "Windows will stop the following devices. After the devices are stopped they may be removed safely."
  198. IDS_UNDOCK_COMPLETE_TEXT
  199. "Windows has finished undocking the system. If you need to remove the system from the %s, please do so now."
  200. IDS_REMOVAL_COMPLETE_TEXT
  201. "The '%s' device can now be safely removed from the system."
  202. IDS_BLOCKDRIVER_TITLE "Devices or applications disabled"
  203. 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."
  204. IDS_BLOCKDRIVER_FORMAT "'%s' will cause Windows to become unstable. Windows has prevented these drivers from loading. Click here for more details."
  205. IDS_CHILDWITHINVALIDID_TITLE
  206. "Hardware Id Missing"
  207. IDS_CHILDWITHINVALIDID_FORMAT
  208. "Windows cannot identify the device plugged into the %s.\r\n\r\nFor assistance, contact the hardware manufacturer."
  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