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.

293 lines
11 KiB

  1. #ifdef NOMINMAX
  2. #undef NOMINMAX
  3. #endif
  4. #include <winver.h>
  5. #include <ntverp.h>
  6. #include "nwscript.h"
  7. #define VER_FILETYPE VFT_APP
  8. #define VER_FILESUBTYPE VFT2_UNKNOWN
  9. #define VER_FILEDESCRIPTION_STR "NetWare Logon Script Utility"
  10. #define VER_INTERNALNAME_STR "nwscript"
  11. #define VER_ORIGINALFILENAME_STR "nwscript.exe"
  12. // #define VER_LEGALCOPYRIGHT_STR VER_LEGALCOPYRIGHT_STR
  13. #undef VER_ADDITIONALCOPYRIGHT_STR
  14. #include "common.ver"
  15. STRINGTABLE
  16. BEGIN
  17. IDR_ERROR
  18. "Error: unexpected error 0x%x during %S\n"
  19. IDR_NO_DEFAULT_CONNECTION
  20. "Error: Unable to get default connection.\n\a"
  21. IDR_NO_KNOWN_FILE_SERVER
  22. "No known file server.\n"
  23. IDR_LOCAL_DRIVE
  24. "Drive %C: maps to a local disk.\n"
  25. IDR_NETWARE_DRIVE
  26. "Drive %C: = %S \\%S\n"
  27. IDR_DASHED_LINE
  28. " ----- Search Drives -----\n"
  29. IDR_LOCAL_SEARCH
  30. "S%d: = %S\n"
  31. IDR_NETWARE_SEARCH
  32. "S%d: = %S [%S \\%S]\n"
  33. IDR_NOT_ENOUGH_MEMORY
  34. "Error: Not enough memory.\n"
  35. IDR_NO_RESPONSE
  36. "No response from file server %S.\n"
  37. IDR_PASSWORD
  38. "Enter the password for user %S on server %S: "
  39. IDR_ATTACHED
  40. "You are attached to server %S.\n\n"
  41. IDR_ACCESS_DENIED
  42. "Access denied.\n"
  43. IDR_UNAUTHORIZED_LOGIN_TIME
  44. "Attempt to login during an unauthorized time period.\nThe supervisor has limited the times that you can login to this server.\n"
  45. IDR_LOGIN_DENIED_NO_CONNECTION
  46. "Attempting to simultaneously login to too many work stations.\nThe supervisor has limited the number of active connections you may have.\n"
  47. IDR_UNAUTHORIZED_LOGIN_STATION
  48. "Attempting to login from an unapproved station.\nThe supervisor has limited the stations that you are allowed to login on.\n"
  49. IDR_ACCOUNT_DISABLED
  50. "This account has expired or been disabled by the supervisor.\n"
  51. IDR_PASSWORD_EXPRIED_NO_GRACE
  52. "Password has expired and all grace logins have been used.\n"
  53. IDR_MAP_NOT_ATTACHED_SERVER
  54. "Attempt to map drive to server to which you are not currently attached.\nThe map command was ""%S"".\n"
  55. IDR_MAP_USAGE
  56. "Microsoft (R) MAP Utility\nCopyright (C) Microsoft Corporation 1994. All rights reserved.\n\n View current mapping.\n\tMAP [drive:]\nCreate or change network drive mappings\n\tMAP path\n\tMAP drive:=[drive:|path]\n\tMAP [DEL[ete] | REM[ove]] drive:\n Create or change search drive mappings\n\tMAP [INS[ert]] drive:=[drive:|path]\nMap a drive to a fake root directory\n\tMAP ROOT drive:=[drive:|path]\nMap the next available drive\n\tMAP N[ext] [drive:|path]\n"
  57. IDR_UNDEFINED
  58. "Drive %C: is not defined.\n"
  59. IDR_DIRECTORY_NOT_FOUND
  60. "Directory ""%S"" is not locatable.\n"
  61. IDR_VOLUME_NOT_EXIST
  62. "Volume ""%S"" does not exist.\n"
  63. IDR_WRONG_DRIVE
  64. "Attempted operation on invalid drive %C:\n"
  65. IDR_DEL_DRIVE
  66. "Mapping for drive %C: has been deleted.\n"
  67. IDR_DEL_SEARCH_DRIVE
  68. "The search mapping for drive %C: has been deleted.\n"
  69. IDR_SEARCH_DRIVE_NOT_EXIST
  70. "Search%d: does not exist.\n"
  71. IDR_NOT_NETWORK_DRIVE
  72. "Attempt to map network drive to unmapped drive or local drive.\n"
  73. IDR_NO_DRIVE_AVAIL
  74. "All Drives are in use.\n"
  75. IDR_INVALID_PATH
  76. """%S"" Invalid path.\n"
  77. IDR_CAN_NOT_CHANGE_DRIVE
  78. "Can not change the drive mapping.\n"
  79. IDR_MAP_INVALID_PATH
  80. "Attempt to map drive to invalid path in map command ""%S"".\n"
  81. IDR_MAP_FAILED
  82. "Following drive mapping operation could not be completed.\r\n ""%S""\r\n"
  83. IDR_NO_SCRIPT_FILE
  84. "Cannot open this script file: %S\n"
  85. IDR_STRIKE_KEY
  86. "Strike any key when ready . . ."
  87. IDR_CANNOT_EXECUTE
  88. "Could not execute external program ""%S"".\n"
  89. IDR_ENOENT
  90. "Could not execute external program ""%S"", program not found.\n"
  91. IDR_EXIT_NOT_SUPPORTED
  92. "The EXIT command followed by a string is not supported on this machine.\n"
  93. IDR_IF_TOO_DEEP
  94. "Script Error: ""IF"" statements nested too deeply. The nesting limit is 9 levels.\n"
  95. IDR_SCRIPT_ERROR
  96. "Script Error: Could not interpret line.\n"
  97. IDR_ORIGINAL_LINE_WAS
  98. "The original line was:\r\n%S\n\n"
  99. IDR_BAD_COMMAND
  100. "Bad command or file name.\n"
  101. IDR_LABEL_NOT_FOUND
  102. "Could not find label ""%S"".\n"
  103. IDR_NO_VOLUME
  104. "Error: No volume found.\n"
  105. IDR_ERROR_DURING
  106. "Error: unexpected error during %S\n"
  107. IDR_MAP_ERROR
  108. "%x\n"
  109. IDR_ENTER_SERVER_NAME
  110. "Enter the server name: "
  111. IDR_ENTER_LOGIN_NAME
  112. "Enter login name for server %S: "
  113. IDR_ERROR_SET_DEFAULT_DRIVE
  114. "Could not set the default drive to drive %C:.\n\n"
  115. IDR_ERROR_OPEN_SCRIPT
  116. "Cannot open this script file: %S\n"
  117. IDR_DIVIDE_BY_ZERO
  118. "Attempted to divide by zero\n"
  119. IDR_NEWLINE
  120. "\n"
  121. IDR_SERVER_USER
  122. "%S/%S: "
  123. IDR_NON_NETWARE_NETWORK_DRIVE
  124. "Following drive mapping operation was attempted on a non-NetWare network drive.\r\n ""%S""\r\n"
  125. IDR_CAPTURE_USAGE
  126. "Microsoft (R) CAPTURE Utility\nCopyright (C) Microsoft Corporation 1994. All rights reserved.\n\n USAGE: CAPTURE /SHow /Server=fileserver /Queue=queuename /Local=n\n /Form=form or n /CReate=path /Copies=n (1-255) /TImeout=n /Keep /Tabs=n (1-18) /No Tabs /Banner=bannername /NAMe=name /No Banner /FormFeed /No FormFeed\n /AUtoendcap /No Autoend /NOTIfy /No NOTIfy\n"
  127. IDR_NOT_ACTIVE
  128. "\nLPT%d: Capturing Is Not Currently Active.\n"
  129. IDR_LPT_STATUS
  130. "\n LPT%d: Capturing data to server %S queue %S.\n %s\n Capture Defaults:%-15sAutomatic Endcap:%s\n Banner :%-24SForm Feed :%s\n Copies :%-24dTabs :%s\n Form :%-24dTimeout Count :%s\n"
  131. IDR_LPT_STATUS_NO_BANNER
  132. "\n LPT%d: Capturing data to server %S queue %S.\n %s\n Capture Defaults:%-15sAutomatic Endcap:%s\n Banner :%-24sForm Feed :%s\n Copies :%-24dTabs :%s\n Form :%-24dTimeout Count :%s\n"
  133. IDR_UNKNOW_FLAG
  134. "An unknown flag %S was encountered.\n"
  135. IDR_INVALID_LPT_NUMBER
  136. "Local printer number (1, 2, or 3) expected.\n"
  137. IDR_SERVER_NOT_FOUND
  138. "Unable to attach to server %S.\n"
  139. IDR_TIMEOUT_OUTOF_RANGE
  140. "Timeout value (0-1000) expected.\n"
  141. IDR_TABSIZE_OUTOF_RANGE
  142. "Tab size must be 1 - 18.\n"
  143. IDR_COPIES_OUTOF_RANGE
  144. "Number of copies (1-255) expected.\n"
  145. IDR_INVALID_BANNER
  146. "%S is invalid banner.\n"
  147. IDR_INVALID_FORM_NAME
  148. "%S is invalid form name.\n"
  149. IDR_INVALID_FORM_TYPE
  150. "Form type (0-255) expected.\n"
  151. IDR_SUCCESS_QUEUE
  152. "Device LPT%d: re-routed to queue %S on server %S.\n"
  153. IDR_NO_PRINTERS
  154. "No default queue name can be found on server %S.\n"
  155. IDR_QUEUE_NOT_EXIST
  156. "Queue %S does not exist on server %S.\n"
  157. IDR_TIME_OUT_EXPECTED
  158. "Timeout value (0-1000) expected.\n"
  159. IDR_LPT_NUMBER_EXPECTED
  160. "Local printer number (1, 2, or 3) expected.\n"
  161. IDR_FORM_EXPECTED
  162. "Form number expected.\n"
  163. IDR_COPIES_EXPECTED
  164. "Number of copies (1-255) expected.\n"
  165. IDR_TAB_SIZE_EXPECTED
  166. "Tab size expected.\n"
  167. IDR_JOB_NOT_FOUND
  168. "%S is not a valid PrintCon job definition.\n"
  169. IDR_FILE_CAPTURE_UNSUPPORTED
  170. "File Capture is unsupported.\n"
  171. IDR_DISABLED
  172. "Disabled"
  173. IDR_ENABLED
  174. "Enabled"
  175. IDR_YES
  176. "Yes"
  177. IDR_NO
  178. "No";
  179. IDR_SECONDS
  180. "%d seconds";
  181. IDR_CONVERT_TO_SPACE
  182. "Converted to %d spaces";
  183. IDR_NO_CONVERSION
  184. "No conversion";
  185. IDR_NOTIFY_USER
  186. "User will be notified after the files are printed.";
  187. IDR_NOT_NOTIFY_USER
  188. "User will not be notified after the files are printed.";
  189. IDR_NONE
  190. "(None)";
  191. IDR_CONNECTION_REFUSED
  192. "Server refused the login; too many sessions.\n";
  193. IDR_LASTLOGIN_PM
  194. "Last login occurred at: %d-%02d-%02d %d:%02d:%02d pm.\n";
  195. IDR_LASTLOGIN_AM
  196. "Last login occurred at: %d-%02d-%02d %d:%02d:%02d am.\n";
  197. IDR_ALL_LOCAL_DRIVES
  198. "Drives %S map to a local disk.\n";
  199. IDR_CHANGE_CONTEXT_ERROR
  200. "The context you want to change to does not exist.\nYou tried to change to:\n[%S]\nYour context will be left unchanged.\n";
  201. IDR_GET_CONTEXT_ERROR
  202. "Error accessing the current context.\n";
  203. IDR_DISPLAY_CONTEXT
  204. "Your context has been changed to: %S\n";
  205. IDR_LPT_STATUS_NDS
  206. "\n LPT%d: Capturing data to print queue %S.\n %s\n Capture Defaults:%-15sAutomatic Endcap:%s\n Banner :%-24SForm Feed :%s\n Copies :%-24dTabs :%s\n Form :%-24dTimeout Count :%s\n"
  207. IDR_LPT_STATUS_NO_BANNER_NDS
  208. "\n LPT%d: Capturing data to print queue %S.\n %s\n Capture Defaults:%-15sAutomatic Endcap:%s\n Banner :%-24sForm Feed :%s\n Copies :%-24dTabs :%s\n Form :%-24dTimeout Count :%s\n"
  209. IDR_NO_QUEUE
  210. "No printer queue was specified\n";
  211. IDR_LASTLOGIN
  212. "Last login occurred at: %s %s.\n";
  213. IDR_TREE_OPEN_FAILED
  214. "Cannot open NDS tree\n";
  215. IDR_NDS_CONTEXT_INVALID
  216. "NDS context is invalid\n";
  217. IDR_NDS_USERNAME_FAILED
  218. "NDS user name could not be accessed\n";
  219. IDR_QUERY_INFO_FAILED
  220. "NetWare information query failed\n";
  221. IDR_NDSQUEUE_NOT_EXIST
  222. "Queue %S does not exist.\n"
  223. IDR_NDSSUCCESS_QUEUE
  224. "Device LPT%d: re-routed to queue %S.\n"
  225. IDR_CAPTURE_FAILED
  226. "Capture of queue %S failed.\n"
  227. IDR_CURRENT_TREE
  228. "Your current tree is: %s\n"
  229. IDR_CURRENT_SERVER
  230. "You are attached to server %S.\n"
  231. IDR_CURRENT_CONTEXT
  232. "Your current context is %S\n"
  233. IDR_AUTHENTICATING_SERVER
  234. "Authenticating to server %S.\n"
  235. IDR_NO_END_QUOTE
  236. "Script Error: The line contains no end quote.\n"
  237. IDR_ALREADY_ATTACHED
  238. "Already attached to server %S\n"
  239. IDR_GREETING_MORNING
  240. "morning"
  241. IDR_GREETING_AFTERNOON
  242. "afternoon"
  243. IDR_GREETING_EVENING
  244. "evening"
  245. IDR_AM
  246. "am"
  247. IDR_PM
  248. "pm"
  249. IDR_SUNDAY
  250. "Sunday"
  251. IDR_MONDAY
  252. "Monday"
  253. IDR_TUESDAY
  254. "Tuesday"
  255. IDR_WEDNESDAY
  256. "Wednesday"
  257. IDR_THURSDAY
  258. "Thursday"
  259. IDR_FRIDAY
  260. "Friday"
  261. IDR_SATURDAY
  262. "Saturday"
  263. IDR_JANUARY
  264. "January"
  265. IDR_FEBRUARY
  266. "February"
  267. IDR_MARCH
  268. "March"
  269. IDR_APRIL
  270. "April"
  271. IDR_MAY
  272. "May"
  273. IDR_JUNE
  274. "June"
  275. IDR_JULY
  276. "July"
  277. IDR_AUGUST
  278. "August"
  279. IDR_SEPTEMBER
  280. "September"
  281. IDR_OCTOBER
  282. "October"
  283. IDR_NOVEMBER
  284. "November"
  285. IDR_DECEMBER
  286. "December"
  287. END