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.

473 lines
12 KiB

  1. ;//+---------------------------------------------------------------------------
  2. ;//
  3. ;// Microsoft Windows
  4. ;// Copyright (C) Microsoft Corporation, 2001.
  5. ;//
  6. ;// File: cmdkey: consmsg.mc
  7. ;//
  8. ;// Contents: cmdkey test messages
  9. ;//
  10. ;// Classes:
  11. ;//
  12. ;// Functions: compiles to consmsg.h
  13. ;//
  14. ;// History: 07-09-01 georgema Created
  15. ;//
  16. ;//----------------------------------------------------------------------------
  17. ;/*++
  18. ;
  19. ; NOTES TO LOCALIZERS:
  20. ;
  21. ; This command line application is driven by switches entered on the command line. The switch
  22. ; character may be either / or -
  23. ;
  24. ; The switch is followed by a command character or word. Only the first character is examined, and must
  25. ; match one of the function command characters listed below.
  26. ;
  27. ; IMHO, the usage text for non-English applications should omit the dangling portion of the command name. Thus,
  28. ; to a Japanese person, the A switch should be described to him as "/a:", not "/add", as I have done below as
  29. ; an example:
  30. ;
  31. ; These are the functions:
  32. ;
  33. ; a - add a credential, followed by the target name
  34. ; c - use a smartcard in place of username
  35. ; d - delete a credential, followed by the target name
  36. ; l - list credentials, optionally followed by target name
  37. ; p - marks the password in the command line
  38. ; r - delete a *Session credential (used with /d switch)
  39. ; u - marks the username in the command line
  40. ; ? - show help
  41. ;
  42. ; English usage text:
  43. ; cmdkey /add:targetname /user:username /pass:password
  44. ; cmdkey /add:targetname /user:username /pass
  45. ; cmdkey /add:targetname /user:username
  46. ; cmdkey /add:targetname /card
  47. ; cmdkey /delete:targetname
  48. ; cmdkey /delete /ras
  49. ; cmdkey /list
  50. ;
  51. ; Non-English usage text:
  52. ; cmdkey /a:targetname /u:username /p:password
  53. ; cmdkey /a:targetname /u:username /p
  54. ; cmdkey /a:targetname /u:username
  55. ; cmdkey /a:targetname /c
  56. ; cmdkey /d:targetname
  57. ; cmdkey /d /r
  58. ; cmdkey /l
  59. ;
  60. ;-------------------------------------------------------------------------
  61. ; HEADER SECTION
  62. ;
  63. ; The header section defines names and language identifiers for use
  64. ; by the message definitions later in this file. The MessageIdTypedef,
  65. ; SeverityNames, FacilityNames, and LanguageNames keywords are
  66. ; optional and not required.
  67. ;
  68. ;
  69. MessageIdTypedef=DWORD
  70. ;
  71. ; The MessageIdTypedef keyword gives a typedef name that is used in a
  72. ; type cast for each message code in the generated include file. Each
  73. ; message code appears in the include file with the format: #define
  74. ; name ((type) 0xnnnnnnnn) The default value for type is empty, and no
  75. ; type cast is generated. It is the programmer's responsibility to
  76. ; specify a typedef statement in the application source code to define
  77. ; the type. The type used in the typedef must be large enough to
  78. ; accomodate the entire 32-bit message code.
  79. ;
  80. ;
  81. SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS
  82. Informational=0x1:STATUS_SEVERITY_INFORMATIONAL
  83. Warning=0x2:STATUS_SEVERITY_WARNING
  84. Error=0x3:STATUS_SEVERITY_ERROR
  85. )
  86. ;
  87. ; The SeverityNames keyword defines the set of names that are allowed
  88. ; as the value of the Severity keyword in the message definition. The
  89. ; set is delimited by left and right parentheses. Associated with each
  90. ; severity name is a number that, when shifted left by 30, gives the
  91. ; bit pattern to logical-OR with the Facility value and MessageId
  92. ; value to form the full 32-bit message code. The default value of
  93. ; this keyword is:
  94. ;
  95. ; SeverityNames=(
  96. ; Success=0x0
  97. ; Informational=0x1
  98. ; Warning=0x2
  99. ; Error=0x3
  100. ; )
  101. ;
  102. ; Severity values occupy the high two bits of a 32-bit message code.
  103. ; Any severity value that does not fit in two bits is an error. The
  104. ; severity codes can be given symbolic names by following each value
  105. ; with :name
  106. ;
  107. ;
  108. FacilityNames=(System=0x0:FACILITY_SYSTEM
  109. Runtime=0x2:FACILITY_RUNTIME
  110. Stubs=0x3:FACILITY_STUBS
  111. Io=0x4:FACILITY_IO_ERROR_CODE
  112. )
  113. ;
  114. ; The FacilityNames keyword defines the set of names that are allowed
  115. ; as the value of the Facility keyword in the message definition. The
  116. ; set is delimited by left and right parentheses. Associated with each
  117. ; facility name is a number that, when shift it left by 16 bits, gives
  118. ; the bit pattern to logical-OR with the Severity value and MessageId
  119. ; value to form the full 32-bit message code. The default value of
  120. ; this keyword is:
  121. ;
  122. ; FacilityNames=(
  123. ; System=0x0FF
  124. ; Application=0xFFF
  125. ; )
  126. ;
  127. ; Facility codes occupy the low order 12 bits of the high order
  128. ; 16-bits of a 32-bit message code. Any facility code that does not
  129. ; fit in 12 bits is an error. This allows for 4,096 facility codes.
  130. ; The first 256 codes are reserved for use by the system software. The
  131. ; facility codes can be given symbolic names by following each value
  132. ; with :name
  133. ;
  134. ;
  135. ; The LanguageNames keyword defines the set of names that are allowed
  136. ; as the value of the Language keyword in the message definition. The
  137. ; set is delimited by left and right parentheses. Associated with each
  138. ; language name is a number and a file name that are used to name the
  139. ; generated resource file that contains the messages for that
  140. ; language. The number corresponds to the language identifier to use
  141. ; in the resource table. The number is separated from the file name
  142. ; with a colon.
  143. ;
  144. LanguageNames=(English=0x409:MSG00409)
  145. ;
  146. ; Any new names in the source file which don't override the built-in
  147. ; names are added to the list of valid languages. This allows an
  148. ; application to support private languages with descriptive names.
  149. ;
  150. ;
  151. ;-------------------------------------------------------------------------
  152. ; MESSAGE DEFINITION SECTION
  153. ;
  154. ; Following the header section is the body of the Message Compiler
  155. ; source file. The body consists of zero or more message definitions.
  156. ; Each message definition begins with one or more of the following
  157. ; statements:
  158. ;
  159. ; MessageId = [number|+number]
  160. ; Severity = severity_name
  161. ; Facility = facility_name
  162. ; SymbolicName = name
  163. ;
  164. ; The MessageId statement marks the beginning of the message
  165. ; definition. A MessageID statement is required for each message,
  166. ; although the value is optional. If no value is specified, the value
  167. ; used is the previous value for the facility plus one. If the value
  168. ; is specified as +number then the value used is the previous value
  169. ; for the facility, plus the number after the plus sign. Otherwise, if
  170. ; a numeric value is given, that value is used. Any MessageId value
  171. ; that does not fit in 16 bits is an error.
  172. ;
  173. ; The Severity and Facility statements are optional. These statements
  174. ; specify additional bits to OR into the final 32-bit message code. If
  175. ; not specified they default to the value last specified for a message
  176. ; definition. The initial values prior to processing the first message
  177. ; definition are:
  178. ;
  179. ; Severity=Success
  180. ; Facility=Application
  181. ;
  182. ; The value associated with Severity and Facility must match one of
  183. ; the names given in the FacilityNames and SeverityNames statements in
  184. ; the header section. The SymbolicName statement allows you to
  185. ; associate a C/C++ symbolic constant with the final 32-bit message
  186. ; code.
  187. ; */
  188. ;// %0 terminates text line without newline to continue with next line
  189. ;// %0 also used to suppress trailing newline for prompt messages
  190. ;// %1 .. 99 refer to positional string args
  191. ;// %n!<printf spec>! refer to positional non string args
  192. ;// %\ forces a line break at the end of a line
  193. ;// %b hard space char that will not be formatted away
  194. ;//
  195. ;// Note that lines beginning with ';' are comments in the MC file, but
  196. ;// are copied to the H file without the leading semicolon
  197. ;
  198. ;#ifndef __CONSMSG_H
  199. ;#define __CONSMSG_H
  200. ;//Message resource numbers
  201. ;//CMDLINESTRINGBASE = 2500
  202. ;//Credential field descriptions
  203. MessageId=2500
  204. SymbolicName=MSG_TYPE0
  205. Language=English
  206. Invalid Type%0
  207. .
  208. MessageId=2501
  209. SymbolicName=MSG_TYPE1
  210. Language=English
  211. Generic %0
  212. .
  213. MessageId=2502
  214. SymbolicName=MSG_TYPE2
  215. Language=English
  216. Domain Password%0
  217. .
  218. MessageId=2503
  219. SymbolicName=MSG_TYPE3
  220. Language=English
  221. Domain Certificate%0
  222. .
  223. MessageId=2504
  224. SymbolicName=MSG_TYPE4
  225. Language=English
  226. %.NET Passport %0
  227. .
  228. MessageId=2505
  229. SymbolicName=MSG_PERSIST0
  230. Language=English
  231. This credential contains a data error.
  232. .
  233. MessageId=2506
  234. SymbolicName=MSG_PERSIST1
  235. Language=English
  236. Saved for this logon only
  237. .
  238. MessageId=2507
  239. SymbolicName=MSG_PERSIST2
  240. Language=English
  241. Local machine persistence
  242. .
  243. MessageId=2508
  244. SymbolicName=MSG_PERSIST3
  245. Language=English
  246. .
  247. ;// message strings
  248. MessageId=2517
  249. SymbolicName=MSG_PREAMBLE
  250. Language=English
  251. CMDKEY: %0
  252. .
  253. MessageId=2518
  254. SymbolicName=MSG_CANNOTADD
  255. Language=English
  256. CMDKEY: Credentials cannot be saved from this logon session.
  257. .
  258. MessageId=2520
  259. SymbolicName=MSG_ADDOK
  260. Language=English
  261. CMDKEY: Credential added successfully.
  262. .
  263. MessageId=2521
  264. SymbolicName=MSG_LISTFOR
  265. Language=English
  266. Currently stored credentials for %1:
  267. .
  268. MessageId=2522
  269. SymbolicName=MSG_LIST
  270. Language=English
  271. Currently stored credentials:
  272. .
  273. MessageId=2523
  274. SymbolicName=STR_DIALUP
  275. Language=English
  276. <dialup session>%0
  277. .
  278. MessageId=2525
  279. SymbolicName=MSG_LISTTYPE
  280. Language=English
  281. Type: %1
  282. .
  283. MessageId=2526
  284. SymbolicName=MSG_LISTNAME
  285. Language=English
  286. User: %1
  287. .
  288. MessageId=2528
  289. SymbolicName=MSG_LISTNONE
  290. Language=English
  291. * NONE *
  292. .
  293. MessageId=2529
  294. SymbolicName=MSG_DELETEOK
  295. Language=English
  296. CMDKEY: Credential deleted successfully.
  297. .
  298. MessageId=2530
  299. SymbolicName=MSG_USAGE
  300. Language=English
  301. The syntax of this command is:
  302. CMDKEY [{/add | /generic}:targetname {/smartcard | /user:username {/pass{:password}}} | /delete{:targetname | /ras} | /list{:targetname}]
  303. Examples:
  304. To list available credentials:
  305. cmdkey /list
  306. cmdkey /list:targetname
  307. To create domain credentials:
  308. cmdkey /add:targetname /user:username /pass:password
  309. cmdkey /add:targetname /user:username /pass
  310. cmdkey /add:targetname /user:username
  311. cmdkey /add:targetname /smartcard
  312. To create generic credentials:
  313. The /add switch may be replaced by /generic to create generic credentials
  314. To delete existing credentials:
  315. cmdkey /delete:targetname
  316. To delete RAS credentials:
  317. cmdkey /delete /ras
  318. .
  319. MessageId=2531
  320. SymbolicName=MSG_BADCOMMAND
  321. Language=English
  322. The command line parameters are incorrect.
  323. .
  324. MessageId=2532
  325. SymbolicName=MSG_TARGETPREAMBLE
  326. Language=English
  327. Target: %0
  328. .
  329. MessageId=2533
  330. SymbolicName=MSG_DIALUP
  331. Language=English
  332. <dialup session>%0
  333. .
  334. MessageId=2534
  335. SymbolicName=MSG_DUPLICATE
  336. Language=English
  337. CMDKEY: A duplicate command switch was found on the command line.
  338. .
  339. MessageId=2535
  340. SymbolicName=MSG_USAGEA
  341. Language=English
  342. Usage:
  343. To create domain credentials:
  344. cmdkey /add:targetname /user:username /pass:password
  345. cmdkey /add:targetname /user:username /pass
  346. cmdkey /add:targetname /user:username
  347. cmdkey /add:targetname /smartcard
  348. .
  349. MessageId=2536
  350. SymbolicName=MSG_USAGEG
  351. Language=English
  352. Usage:
  353. To create generic credentials:
  354. cmdkey /generic:targetname /user:username /pass:password
  355. cmdkey /generic:targetname /user:username /pass
  356. cmdkey /generic:targetname /user:username
  357. cmdkey /generic:targetname /smartcard
  358. .
  359. MessageId=2538
  360. SymbolicName=MSG_USAGED
  361. Language=English
  362. Usage:
  363. To delete credentials:
  364. cmdkey /delete:targetname
  365. cmdkey /delete /ras
  366. .
  367. MessageId=2539
  368. SymbolicName=MSG_USAGEL
  369. Language=English
  370. Usage:
  371. To list credentials:
  372. cmdkey /list:targetname
  373. cmdkey /list
  374. .
  375. MessageId=2540
  376. SymbolicName=MSG_NOUSER
  377. Language=English
  378. CMDKEY: This command requires either the /U switch and
  379. a username or else the /smartcard switch with a smartcard.
  380. .
  381. MessageId=2541
  382. SymbolicName=MSG_CREATES
  383. Language=English
  384. Creates, displays, and deletes stored user names and passwords.
  385. .
  386. MessageId=2542
  387. SymbolicName=MSG_NOCERT
  388. Language=English
  389. <missing certificate>%0
  390. .
  391. MessageId=2543
  392. SymbolicName=MSG_ISCERT
  393. Language=English
  394. <Certificate>%0
  395. .
  396. ;#endif // __CONSMSG.H__