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
11 KiB

  1. /****************************************************************************/
  2. /* robosrv.rc */
  3. /* */
  4. /* RoboServer scalability testing utility resource file */
  5. /* */
  6. /* Copyright (c) 1999 Microsoft Corporation */
  7. /****************************************************************************/
  8. #include <windows.h>
  9. #include <ntverp.h>
  10. #define VER_FILETYPE VFT_APP
  11. #define VER_FILESUBTYPE VFT2_UNKNOWN
  12. #define VER_FILEDESCRIPTION_STR "Terminal Services RoboServer Utility"
  13. #define VER_INTERNALNAME_STR "robosrv"
  14. #define VER_ORIGINALFILENAME_STR "robosrv.exe"
  15. VS_VERSION_INFO VERSIONINFO
  16. FILEVERSION 5,0,2080,1
  17. PRODUCTVERSION 5,0,2080,1
  18. FILEFLAGSMASK 0x3fL
  19. #ifdef _DEBUG
  20. FILEFLAGS 0x9L
  21. #else
  22. FILEFLAGS 0x8L
  23. #endif
  24. FILEOS 0x40004L
  25. FILETYPE 0x1L
  26. FILESUBTYPE 0x0L
  27. BEGIN
  28. END
  29. #include "resource.h"
  30. #define APSTUDIO_READONLY_SYMBOLS
  31. /////////////////////////////////////////////////////////////////////////////
  32. //
  33. // Generated from the TEXTINCLUDE 2 resource.
  34. //
  35. /////////////////////////////////////////////////////////////////////////////
  36. #undef APSTUDIO_READONLY_SYMBOLS
  37. /////////////////////////////////////////////////////////////////////////////
  38. // English (U.S.) resources
  39. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
  40. #ifdef _WIN32
  41. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  42. #pragma code_page(1252)
  43. #endif //_WIN32
  44. #ifdef APSTUDIO_INVOKED
  45. /////////////////////////////////////////////////////////////////////////////
  46. //
  47. // TEXTINCLUDE
  48. //
  49. 1 TEXTINCLUDE DISCARDABLE
  50. BEGIN
  51. "resource.h\0"
  52. END
  53. 2 TEXTINCLUDE DISCARDABLE
  54. BEGIN
  55. "\r\n"
  56. "\0"
  57. END
  58. #endif // APSTUDIO_INVOKED
  59. /////////////////////////////////////////////////////////////////////////////
  60. //
  61. // Dialog
  62. //
  63. IDD_MAINDIALOG DIALOGEX 0, 0, 366, 349
  64. STYLE WS_MINIMIZEBOX | WS_CAPTION | WS_SYSMENU
  65. CAPTION "RoboServer"
  66. CLASS "RoboServer"
  67. FONT 8, "MS Shell Dlg"
  68. BEGIN
  69. LTEXT "Status Bar",IDC_ERRORTEXT,7,332,352,10
  70. CONTROL "List1",IDC_LISTVIEW,"SysListView32",LVS_REPORT |
  71. LVS_AUTOARRANGE | WS_BORDER | WS_TABSTOP,7,7,352,198
  72. CONTROL "Slider1",IDC_SLIDER1,"msctls_trackbar32",TBS_AUTOTICKS |
  73. WS_TABSTOP,119,260,82,10
  74. GROUPBOX "Status",IDC_STATUS,7,210,352,45
  75. LTEXT "Total Scripts running:",IDC_STATIC1,15,220,67,10
  76. // LTEXT "Administrative Workers: 0",IDC_STATIC2,15,230,105,10,
  77. // WS_DISABLED
  78. LTEXT "qidle status",IDC_STATIC3,15,240,285,10
  79. LTEXT "Number of connections per client:",IDC_STATIC4,7,261,
  80. 110,10
  81. LTEXT "1",IDC_STATIC5,122,271,8,8
  82. LTEXT "5",IDC_STATIC6,194,271,8,8
  83. LTEXT "Terminal Server to hit:",IDC_STATIC7,7,291,73,8
  84. EDITTEXT IDC_TERMSRVEDIT,89,289,106,12,ES_AUTOHSCROLL
  85. LTEXT "Delay between multiselect commands (seconds):",
  86. IDC_STATIC8,7,309,160,8
  87. EDITTEXT IDC_DELAYEDIT,167,307,28,12,ES_AUTOHSCROLL | ES_NUMBER
  88. CONTROL "Progress1",IDC_PROGRESS1,"msctls_progress32",
  89. PBS_VERTICAL | PBS_SMOOTH,312,223,6,20
  90. CONTROL "Progress1",IDC_PROGRESS2,"msctls_progress32",
  91. PBS_VERTICAL | PBS_SMOOTH,318,223,6,20
  92. CONTROL "Progress1",IDC_PROGRESS3,"msctls_progress32",
  93. PBS_VERTICAL | PBS_SMOOTH,324,223,6,20
  94. CONTROL "Progress1",IDC_PROGRESS4,"msctls_progress32",
  95. PBS_VERTICAL | PBS_SMOOTH,330,223,6,20
  96. CONTROL "Progress1",IDC_PROGRESS5,"msctls_progress32",
  97. PBS_VERTICAL | PBS_SMOOTH,336,223,6,20
  98. CONTROL "Progress1",IDC_PROGRESS6,"msctls_progress32",
  99. PBS_VERTICAL | PBS_SMOOTH,342,223,6,20
  100. LTEXT "Time between sets (min):",IDC_STATIC9,213,309,84,8
  101. LTEXT "Clients per set:",IDC_STATIC10,213,291,60,8
  102. EDITTEXT IDC_CLIENTSPERSET,301,290,44,12,ES_AUTOHSCROLL |
  103. ES_NUMBER
  104. EDITTEXT IDC_SETDELAY,301,307,44,12,ES_AUTOHSCROLL | ES_NUMBER
  105. LTEXT "0",IDC_NUMTOTAL,88,220,11,10,0,WS_EX_RIGHT
  106. CONTROL "Run canary automatically",IDC_CANARYCHECK,"Button",
  107. BS_AUTOCHECKBOX | WS_TABSTOP,240,263,95,10
  108. END
  109. /////////////////////////////////////////////////////////////////////////////
  110. //
  111. // DESIGNINFO
  112. //
  113. #ifdef APSTUDIO_INVOKED
  114. GUIDELINES DESIGNINFO DISCARDABLE
  115. BEGIN
  116. IDD_MAINDIALOG, DIALOG
  117. BEGIN
  118. LEFTMARGIN, 7
  119. RIGHTMARGIN, 359
  120. TOPMARGIN, 7
  121. BOTTOMMARGIN, 342
  122. END
  123. END
  124. #endif // APSTUDIO_INVOKED
  125. /////////////////////////////////////////////////////////////////////////////
  126. //
  127. // Icon
  128. //
  129. // Icon with lowest ID value placed first to ensure application icon
  130. // remains consistent on all systems.
  131. IDI_MAINICON ICON DISCARDABLE "robosrv.ico"
  132. /////////////////////////////////////////////////////////////////////////////
  133. //
  134. // Menu
  135. //
  136. IDR_MENU1 MENU DISCARDABLE
  137. BEGIN
  138. POPUP ""
  139. BEGIN
  140. POPUP "Run Script"
  141. BEGIN
  142. MENUITEM "Knowledge Worker (knowwkr.scp)",
  143. ID_RUNSCRIPT_KNOWLEDGEWORKER
  144. MENUITEM "Fast Knowledge Worker (fastkw.scp)", ID_RUNSCRIPT_KNOWLEDGEWORKERFAST
  145. MENUITEM "Administrative Worker (adminwkr.scp)",
  146. ID_RUNSCRIPT_ADMINISTRATIVEWORKER
  147. , GRAYED
  148. MENUITEM "Data Entry Worker (taskwkr.scp)", ID__RUNSCRIPT_DATA
  149. MENUITEM "Structured Task Worker (stw.scp)", ID__RUNSCRIPT_STW
  150. MENUITEM "High-Performance Worker (hpw.scp)", ID__RUNSCRIPT_HPW
  151. , GRAYED
  152. MENUITEM "Idle Session (blank.scp)", ID__RUNSCRIPT_BLANK
  153. MENUITEM "Configuration script (config.scp)",
  154. ID__RUNSCRIPT_CONFIGURATIONSCRIPT
  155. END
  156. MENUITEM "Update", ID__UPDATE, GRAYED
  157. MENUITEM "Reboot", ID__REBOOT
  158. MENUITEM "Pause", ID_PAUSE, GRAYED
  159. MENUITEM "Cancel Pending Tasks", ID_CANCEL, GRAYED
  160. END
  161. END
  162. IDR_MENU2 MENU DISCARDABLE
  163. BEGIN
  164. POPUP "&Options"
  165. BEGIN
  166. MENUITEM "&Change Servername...", ID_SERVER_CHANGESERVERNAME
  167. END
  168. END
  169. #endif // English (U.S.) resources
  170. /////////////////////////////////////////////////////////////////////////////
  171. #ifndef APSTUDIO_INVOKED
  172. /////////////////////////////////////////////////////////////////////////////
  173. //
  174. // Generated from the TEXTINCLUDE 3 resource.
  175. //
  176. /////////////////////////////////////////////////////////////////////////////
  177. #endif // not APSTUDIO_INVOKED
  178. STRINGTABLE
  179. BEGIN
  180. IDS_CLIENTNAMECOL
  181. "Client Name"
  182. IDS_STATUSCOL
  183. "Status"
  184. IDS_INDEXCOL
  185. "Index"
  186. IDS_STARTTIMECOL
  187. "Time started"
  188. IDS_LOADICONFAILED
  189. "Failed to load icon"
  190. IDS_FATALERROR
  191. "Fatal Error"
  192. IDS_LOADCURSORFAILED
  193. "Failed to load cursor"
  194. IDS_LOADSMICONFAILED
  195. "Failed to load small icon"
  196. IDS_LABTS
  197. "LABTS"
  198. IDS_COMMANDLINEERR
  199. "Command line error"
  200. IDS_INITCOMCTRLFAIL
  201. "Initialize common controls failed"
  202. IDS_REGWNDCLASSFAIL
  203. "Unable to register window class"
  204. IDS_CREATEMAINWNDERR
  205. "Unable to create main dialog"
  206. IDS_WINSOCKERR
  207. "Windows Sockets did not initialize!"
  208. IDS_WSAASYNCSELERR
  209. "WSAAsyncSelect failed"
  210. IDS_WELCOME
  211. "Welcome to RoboServer"
  212. IDS_POPUPMENULOADERR
  213. "Failed to load popup menu"
  214. IDS_CANARYEVENTERR
  215. "Could not create canary event"
  216. IDS_CANARYTHREADERR
  217. "Could not create canary thread"
  218. IDS_INVALIDQIDLESOCKET
  219. "Invalid socket from QueryIdle"
  220. IDS_WSAASYNCQIDLEERR
  221. "WSAAsyncSelect failed creating connection to qidle"
  222. IDS_QIDLECONNEST
  223. "Qidle connection established"
  224. IDS_QIDLEREPORTWEIRDUSER
  225. "Qidle indicated a failed script that I didn't start.")
  226. IDS_USERISIDLE
  227. "User smc%03d is idle"
  228. IDS_QIDLESENTGIBBERISH
  229. "ERROR: Qidle message not understood"
  230. IDS_QIDLESENTWRONGLENGTH
  231. "ERROR: Qidle command had bad length"
  232. IDS_QIDLESOCKERR
  233. "Qidle socket error"
  234. IDS_QIDLESAYSGOODBYE
  235. "Qidle closed connection"
  236. IDS_PENDING
  237. "Pending %s"
  238. IDS_PROCESSINGCONNREQ
  239. "Processing connect request"
  240. IDS_GETHOSTFAILED
  241. "gethostbyaddr failed"
  242. IDS_COULDNOTDELITEM
  243. "Tried to delete existing item but could not"
  244. IDS_CLIENTCONNECTED
  245. "Client %d connected"
  246. IDS_INVALIDSOCKETFROMACCEPT
  247. "internal error: invalid socket from accept, RC connection"
  248. IDS_SENDERRNUMCONN
  249. "internal error: error from send( sending number of connections to RoboClient"
  250. IDS_CONNECTED
  251. "Connected"
  252. IDS_ROBOCLIDISCON
  253. "A RoboClient is disconnecting."
  254. IDS_LOSTCONNECTION
  255. "Lost Connection"
  256. IDS_SMCLIENTRUNERR
  257. "Error running smclient"
  258. IDS_CREATESCRERR
  259. "Error running create script"
  260. IDS_SCRIPTSTARTED
  261. "Script started successfully"
  262. IDS_UNKNOWNROBOTALK
  263. "Unknown status received (possibly old RoboClient"
  264. IDS_CANARYDELAYING
  265. "Delaying before canary start...."
  266. IDS_CANARYSTARTING
  267. "Canary starting now"
  268. IDS_CANARYCOULDNTSTART
  269. "ERROR: Canary terminated abnormally or could not start"
  270. IDS_CANARYFINISHED
  271. "Canary finished"
  272. IDS_CANARYCOULDNOTOPENFILE
  273. "Canary could not open file"
  274. IDS_SOCKETERROR
  275. "socket error"
  276. IDS_BINDERRBODY
  277. "Could not bind on port. You may have another instance of RoboServer running."
  278. IDS_BINDERRTITLE
  279. "bind error"
  280. IDS_LISTENERROR
  281. "listen error"
  282. IDS_CANTRUNDISC
  283. "Can't run script on disconnected item"
  284. IDS_COMMANDSENT
  285. "Command sent"
  286. IDS_SENDERROR
  287. "send error"
  288. IDS_RUNCOMMANDSENT
  289. "Run command sent"
  290. IDS_CANCELCOMMAND
  291. "Command canceled"
  292. IDS_COMMANDLINESYNTAX
  293. "Syntax: ""robosrv [-s:<server name>] [-n:<number of clients]"",\nwhere number of clients is between 1 and 5"
  294. IDS_COMMANDLINESYNTAXTITLE
  295. "Argument error"
  296. IDS_CLOSINGLISTENER
  297. "Closing listener socket"
  298. IDS_COULDNOTCLOSELISTENER
  299. "Listener socket could not be closed"
  300. IDS_ERROR
  301. "Error"
  302. IDS_DISCONNECTINGCLIENTS
  303. "Disconnecting clients..."
  304. IDS_ERRORCANTRECVNOTIFICATIONS
  305. "Internal error: couldn't set up notifications on this socket"
  306. END