1
0

unitStatusText.cpp 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996
  1. #include "./main.h"
  2. #include "./resource.h"
  3. #include <strsafe.h>
  4. wchar_t* GetUnitStatusText(wchar_t *buffer, unsigned int cchBuffer, DWORD sense, DWORD asc, DWORD ascq)
  5. {
  6. DWORD strcode = IDS_UNKNOWN;
  7. switch(sense)
  8. {
  9. case 0x00:
  10. switch(asc)
  11. {
  12. case 0x00:
  13. switch(ascq)
  14. {
  15. case 0x00: strcode = IDS_DRIVEERRORCODE_000000; break;
  16. case 0x01: strcode = IDS_DRIVEERRORCODE_000001; break;
  17. case 0x02: strcode = IDS_DRIVEERRORCODE_000002; break;
  18. case 0x03: strcode = IDS_DRIVEERRORCODE_000003; break;
  19. case 0x04: strcode = IDS_DRIVEERRORCODE_000004; break;
  20. case 0x05: strcode = IDS_DRIVEERRORCODE_000005; break;
  21. case 0x11: strcode = IDS_DRIVEERRORCODE_000011; break;
  22. case 0x12: strcode = IDS_DRIVEERRORCODE_000012; break;
  23. case 0x13: strcode = IDS_DRIVEERRORCODE_000013; break;
  24. case 0x14: strcode = IDS_DRIVEERRORCODE_000014; break;
  25. case 0x15: strcode = IDS_DRIVEERRORCODE_000015; break;
  26. case 0x16: strcode = IDS_DRIVEERRORCODE_000016; break;
  27. }
  28. break;
  29. }
  30. break;
  31. case 0x01:
  32. switch(asc)
  33. {
  34. case 0x0B:
  35. switch(ascq)
  36. {
  37. case 0x00: strcode = IDS_DRIVEERRORCODE_010B00; break;
  38. case 0x01: strcode = IDS_DRIVEERRORCODE_010B01; break;
  39. case 0x02: strcode = IDS_DRIVEERRORCODE_010B02; break;
  40. }
  41. break;
  42. case 0x0C:
  43. switch(ascq)
  44. {
  45. case 0x0A: strcode = IDS_DRIVEERRORCODE_010C0A; break;
  46. }
  47. break;
  48. case 0x17:
  49. switch(ascq)
  50. {
  51. case 0x00: strcode = IDS_DRIVEERRORCODE_011700; break;
  52. case 0x01: strcode = IDS_DRIVEERRORCODE_011701; break;
  53. case 0x02: strcode = IDS_DRIVEERRORCODE_011702; break;
  54. case 0x03: strcode = IDS_DRIVEERRORCODE_011703; break;
  55. case 0x04: strcode = IDS_DRIVEERRORCODE_011704; break;
  56. case 0x05: strcode = IDS_DRIVEERRORCODE_011705; break;
  57. case 0x06: strcode = IDS_DRIVEERRORCODE_011706; break;
  58. case 0x07: strcode = IDS_DRIVEERRORCODE_011707; break;
  59. case 0x08: strcode = IDS_DRIVEERRORCODE_011708; break;
  60. case 0x09: strcode = IDS_DRIVEERRORCODE_011709; break;
  61. }
  62. break;
  63. case 0x18:
  64. switch(ascq)
  65. {
  66. case 0x00: strcode = IDS_DRIVEERRORCODE_011800; break;
  67. case 0x01: strcode = IDS_DRIVEERRORCODE_011801; break;
  68. case 0x02: strcode = IDS_DRIVEERRORCODE_011802; break;
  69. case 0x03: strcode = IDS_DRIVEERRORCODE_011803; break;
  70. case 0x04: strcode = IDS_DRIVEERRORCODE_011804; break;
  71. case 0x05: strcode = IDS_DRIVEERRORCODE_011805; break;
  72. case 0x06: strcode = IDS_DRIVEERRORCODE_011806; break;
  73. case 0x07: strcode = IDS_DRIVEERRORCODE_011807; break;
  74. case 0x08: strcode = IDS_DRIVEERRORCODE_011808; break;
  75. }
  76. break;
  77. case 0x1E:
  78. switch(ascq)
  79. {
  80. case 0x00: strcode = IDS_DRIVEERRORCODE_011E00; break;
  81. }
  82. break;
  83. case 0x37:
  84. switch(ascq)
  85. {
  86. case 0x00: strcode = IDS_DRIVEERRORCODE_013700; break;
  87. }
  88. break;
  89. case 0x5D:
  90. switch(ascq)
  91. {
  92. case 0x00: strcode = IDS_DRIVEERRORCODE_015D00; break;
  93. case 0x01: strcode = IDS_DRIVEERRORCODE_015D01; break;
  94. case 0xFF: strcode = IDS_DRIVEERRORCODE_015DFF; break;
  95. }
  96. break;
  97. case 0x6A:
  98. switch(ascq)
  99. {
  100. case 0x00: strcode = IDS_DRIVEERRORCODE_016A00; break;
  101. }
  102. break;
  103. case 0x73:
  104. switch(ascq)
  105. {
  106. case 0x01: strcode = IDS_DRIVEERRORCODE_017301; break;
  107. case 0x06: strcode = IDS_DRIVEERRORCODE_017306; break;
  108. }
  109. break;
  110. }
  111. break;
  112. case 0x02:
  113. switch(asc)
  114. {
  115. case 0x04:
  116. switch(ascq)
  117. {
  118. case 0x00: strcode = IDS_DRIVEERRORCODE_020400; break;
  119. case 0x01: strcode = IDS_DRIVEERRORCODE_020401; break;
  120. case 0x02: strcode = IDS_DRIVEERRORCODE_020402; break;
  121. case 0x03: strcode = IDS_DRIVEERRORCODE_020403; break;
  122. case 0x04: strcode = IDS_DRIVEERRORCODE_020404; break;
  123. case 0x05: strcode = IDS_DRIVEERRORCODE_020405; break;
  124. case 0x06: strcode = IDS_DRIVEERRORCODE_020406; break;
  125. case 0x07: strcode = IDS_DRIVEERRORCODE_020407; break;
  126. case 0x08: strcode = IDS_DRIVEERRORCODE_020408; break;
  127. }
  128. break;
  129. case 0x05:
  130. switch(ascq)
  131. {
  132. case 0x00: strcode = IDS_DRIVEERRORCODE_020500; break;
  133. }
  134. break;
  135. case 0x06:
  136. switch(ascq)
  137. {
  138. case 0x00: strcode = IDS_DRIVEERRORCODE_020600; break;
  139. }
  140. break;
  141. case 0x30:
  142. switch(ascq)
  143. {
  144. case 0x00: strcode = IDS_DRIVEERRORCODE_023000; break;
  145. case 0x01: strcode = IDS_DRIVEERRORCODE_023001; break;
  146. case 0x02: strcode = IDS_DRIVEERRORCODE_023002; break;
  147. case 0x03: strcode = IDS_DRIVEERRORCODE_023003; break;
  148. case 0x04: strcode = IDS_DRIVEERRORCODE_023004; break;
  149. case 0x05: strcode = IDS_DRIVEERRORCODE_023005; break;
  150. case 0x07: strcode = IDS_DRIVEERRORCODE_023007; break;
  151. }
  152. break;
  153. case 0x35:
  154. switch(ascq)
  155. {
  156. case 0x02: strcode = IDS_DRIVEERRORCODE_023502; break;
  157. }
  158. break;
  159. case 0x3A:
  160. switch(ascq)
  161. {
  162. case 0x00: strcode = IDS_DRIVEERRORCODE_023A00; break;
  163. case 0x01: strcode = IDS_DRIVEERRORCODE_023A01; break;
  164. case 0x02: strcode = IDS_DRIVEERRORCODE_023A02; break;
  165. }
  166. break;
  167. case 0x3E:
  168. switch(ascq)
  169. {
  170. case 0x00: strcode = IDS_DRIVEERRORCODE_023E00; break;
  171. }
  172. break;
  173. case 0x53:
  174. switch(ascq)
  175. {
  176. case 0x00: strcode = IDS_DRIVEERRORCODE_025300; break;
  177. case 0x02: strcode = IDS_DRIVEERRORCODE_025302; break;
  178. }
  179. break;
  180. case 0x57:
  181. switch(ascq)
  182. {
  183. case 0x00: strcode = IDS_DRIVEERRORCODE_025700; break;
  184. }
  185. break;
  186. case 0x68:
  187. switch(ascq)
  188. {
  189. case 0x00: strcode = IDS_DRIVEERRORCODE_026800; break;
  190. }
  191. break;
  192. }
  193. break;
  194. case 0x03:
  195. switch(asc)
  196. {
  197. case 0x00:
  198. switch(ascq)
  199. {
  200. case 0x14: strcode = IDS_DRIVEERRORCODE_030014; break;
  201. }
  202. break;
  203. case 0x02:
  204. switch(ascq)
  205. {
  206. case 0x00: strcode = IDS_DRIVEERRORCODE_030200; break;
  207. case 0x80: strcode = IDS_DRIVEERRORCODE_030280; break;
  208. case 0x81: strcode = IDS_DRIVEERRORCODE_030281; break;
  209. case 0x82: strcode = IDS_DRIVEERRORCODE_030282; break;
  210. case 0x83: strcode = IDS_DRIVEERRORCODE_030283; break;
  211. }
  212. break;
  213. case 0x03:
  214. switch(ascq)
  215. {
  216. case 0x00: strcode = IDS_DRIVEERRORCODE_030300; break;
  217. case 0x01: strcode = IDS_DRIVEERRORCODE_030301; break;
  218. case 0x02: strcode = IDS_DRIVEERRORCODE_030302; break;
  219. }
  220. break;
  221. case 0x06:
  222. switch(ascq)
  223. {
  224. case 0x00: strcode = IDS_DRIVEERRORCODE_030600; break;
  225. }
  226. break;
  227. case 0x0C:
  228. switch(ascq)
  229. {
  230. case 0x00: strcode = IDS_DRIVEERRORCODE_030C00; break;
  231. case 0x01: strcode = IDS_DRIVEERRORCODE_030C01; break;
  232. case 0x02: strcode = IDS_DRIVEERRORCODE_030C02; break;
  233. case 0x03: strcode = IDS_DRIVEERRORCODE_030C03; break;
  234. case 0x04: strcode = IDS_DRIVEERRORCODE_030C04; break;
  235. case 0x05: strcode = IDS_DRIVEERRORCODE_030C05; break;
  236. case 0x06: strcode = IDS_DRIVEERRORCODE_030C06; break;
  237. case 0x07: strcode = IDS_DRIVEERRORCODE_030C07; break;
  238. case 0x08: strcode = IDS_DRIVEERRORCODE_030C08; break;
  239. case 0x09: strcode = IDS_DRIVEERRORCODE_030C09; break;
  240. case 0x0A: strcode = IDS_DRIVEERRORCODE_030C0A; break;
  241. }
  242. break;
  243. case 0x10:
  244. switch(ascq)
  245. {
  246. case 0x00: strcode = IDS_DRIVEERRORCODE_031000; break;
  247. }
  248. break;
  249. case 0x11:
  250. switch(ascq)
  251. {
  252. case 0x00: strcode = IDS_DRIVEERRORCODE_031100; break;
  253. case 0x01: strcode = IDS_DRIVEERRORCODE_031101; break;
  254. case 0x02: strcode = IDS_DRIVEERRORCODE_031102; break;
  255. case 0x03: strcode = IDS_DRIVEERRORCODE_031103; break;
  256. case 0x04: strcode = IDS_DRIVEERRORCODE_031104; break;
  257. case 0x05: strcode = IDS_DRIVEERRORCODE_031105; break;
  258. case 0x06: strcode = IDS_DRIVEERRORCODE_031106; break;
  259. case 0x07: strcode = IDS_DRIVEERRORCODE_031107; break;
  260. case 0x08: strcode = IDS_DRIVEERRORCODE_031108; break;
  261. case 0x09: strcode = IDS_DRIVEERRORCODE_031109; break;
  262. case 0x0A: strcode = IDS_DRIVEERRORCODE_03110A; break;
  263. case 0x0B: strcode = IDS_DRIVEERRORCODE_03110B; break;
  264. case 0x0C: strcode = IDS_DRIVEERRORCODE_03110C; break;
  265. case 0x0D: strcode = IDS_DRIVEERRORCODE_03110D; break;
  266. case 0x0E: strcode = IDS_DRIVEERRORCODE_03110E; break;
  267. case 0x0F: strcode = IDS_DRIVEERRORCODE_03110F; break;
  268. case 0x10: strcode = IDS_DRIVEERRORCODE_031110; break;
  269. }
  270. break;
  271. case 0x12:
  272. switch(ascq)
  273. {
  274. case 0x00: strcode = IDS_DRIVEERRORCODE_031200; break;
  275. }
  276. break;
  277. case 0x13:
  278. switch(ascq)
  279. {
  280. case 0x00: strcode = IDS_DRIVEERRORCODE_031300; break;
  281. }
  282. break;
  283. case 0x14:
  284. switch(ascq)
  285. {
  286. case 0x00: strcode = IDS_DRIVEERRORCODE_031400; break;
  287. case 0x01: strcode = IDS_DRIVEERRORCODE_031401; break;
  288. case 0x02: strcode = IDS_DRIVEERRORCODE_031402; break;
  289. case 0x03: strcode = IDS_DRIVEERRORCODE_031403; break;
  290. case 0x04: strcode = IDS_DRIVEERRORCODE_031404; break;
  291. case 0x05: strcode = IDS_DRIVEERRORCODE_031405; break;
  292. case 0x06: strcode = IDS_DRIVEERRORCODE_031406; break;
  293. }
  294. break;
  295. case 0x15:
  296. switch(ascq)
  297. {
  298. case 0x00: strcode = IDS_DRIVEERRORCODE_031500; break;
  299. case 0x01: strcode = IDS_DRIVEERRORCODE_031501; break;
  300. case 0x02: strcode = IDS_DRIVEERRORCODE_031502; break;
  301. }
  302. break;
  303. case 0x16:
  304. switch(ascq)
  305. {
  306. case 0x00: strcode = IDS_DRIVEERRORCODE_031600; break;
  307. case 0x01: strcode = IDS_DRIVEERRORCODE_031601; break;
  308. case 0x02: strcode = IDS_DRIVEERRORCODE_031602; break;
  309. case 0x03: strcode = IDS_DRIVEERRORCODE_031603; break;
  310. case 0x04: strcode = IDS_DRIVEERRORCODE_031604; break;
  311. }
  312. break;
  313. case 0x19:
  314. switch(ascq)
  315. {
  316. case 0x00: strcode = IDS_DRIVEERRORCODE_031900; break;
  317. case 0x01: strcode = IDS_DRIVEERRORCODE_031901; break;
  318. case 0x02: strcode = IDS_DRIVEERRORCODE_031902; break;
  319. case 0x03: strcode = IDS_DRIVEERRORCODE_031903; break;
  320. }
  321. break;
  322. case 0x1F:
  323. switch(ascq)
  324. {
  325. case 0x00: strcode = IDS_DRIVEERRORCODE_031F00; break;
  326. }
  327. break;
  328. case 0x2D:
  329. switch(ascq)
  330. {
  331. case 0x00: strcode = IDS_DRIVEERRORCODE_032D00; break;
  332. }
  333. break;
  334. case 0x30:
  335. switch(ascq)
  336. {
  337. case 0x00: strcode = IDS_DRIVEERRORCODE_033000; break;
  338. }
  339. break;
  340. case 0x31:
  341. switch(ascq)
  342. {
  343. case 0x00: strcode = IDS_DRIVEERRORCODE_033100; break;
  344. case 0x01: strcode = IDS_DRIVEERRORCODE_033101; break;
  345. case 0x02: strcode = IDS_DRIVEERRORCODE_033102; break;
  346. }
  347. break;
  348. case 0x32:
  349. switch(ascq)
  350. {
  351. case 0x00: strcode = IDS_DRIVEERRORCODE_033200; break;
  352. case 0x01: strcode = IDS_DRIVEERRORCODE_033201; break;
  353. }
  354. break;
  355. case 0x33:
  356. switch(ascq)
  357. {
  358. case 0x00: strcode = IDS_DRIVEERRORCODE_033300; break;
  359. }
  360. break;
  361. case 0x36:
  362. switch(ascq)
  363. {
  364. case 0x00: strcode = IDS_DRIVEERRORCODE_033600; break;
  365. }
  366. break;
  367. case 0x3B:
  368. switch(ascq)
  369. {
  370. case 0x00: strcode = IDS_DRIVEERRORCODE_033B00; break;
  371. case 0x01: strcode = IDS_DRIVEERRORCODE_033B01; break;
  372. case 0x02: strcode = IDS_DRIVEERRORCODE_033B02; break;
  373. case 0x03: strcode = IDS_DRIVEERRORCODE_033B03; break;
  374. case 0x06: strcode = IDS_DRIVEERRORCODE_033B06; break;
  375. case 0x07: strcode = IDS_DRIVEERRORCODE_033B07; break;
  376. case 0x08: strcode = IDS_DRIVEERRORCODE_033B08; break;
  377. case 0x09: strcode = IDS_DRIVEERRORCODE_033B09; break;
  378. case 0x0A: strcode = IDS_DRIVEERRORCODE_033B0A; break;
  379. case 0x0B: strcode = IDS_DRIVEERRORCODE_033B0B; break;
  380. case 0x0C: strcode = IDS_DRIVEERRORCODE_033B0C; break;
  381. }
  382. break;
  383. case 0x51:
  384. switch(ascq)
  385. {
  386. case 0x00: strcode = IDS_DRIVEERRORCODE_035100; break;
  387. }
  388. break;
  389. case 0x52:
  390. switch(ascq)
  391. {
  392. case 0x00: strcode = IDS_DRIVEERRORCODE_035200; break;
  393. }
  394. break;
  395. case 0x57:
  396. switch(ascq)
  397. {
  398. case 0x00: strcode = IDS_DRIVEERRORCODE_035700; break;
  399. }
  400. break;
  401. case 0x5C:
  402. switch(ascq)
  403. {
  404. case 0x02: strcode = IDS_DRIVEERRORCODE_035C02; break;
  405. }
  406. break;
  407. case 0x61:
  408. switch(ascq)
  409. {
  410. case 0x00: strcode = IDS_DRIVEERRORCODE_036100; break;
  411. case 0x01: strcode = IDS_DRIVEERRORCODE_036101; break;
  412. case 0x02: strcode = IDS_DRIVEERRORCODE_036102; break;
  413. }
  414. break;
  415. case 0x6C:
  416. switch(ascq)
  417. {
  418. case 0x00: strcode = IDS_DRIVEERRORCODE_036C00; break;
  419. }
  420. break;
  421. case 0x6D:
  422. switch(ascq)
  423. {
  424. case 0x00: strcode = IDS_DRIVEERRORCODE_036D00; break;
  425. }
  426. break;
  427. case 0x70: strcode = IDS_DRIVEERRORCODE_0370NN; break;
  428. case 0x71:
  429. switch(ascq)
  430. {
  431. case 0x00: strcode = IDS_DRIVEERRORCODE_037100; break;
  432. }
  433. break;
  434. case 0x72:
  435. switch(ascq)
  436. {
  437. case 0x00: strcode = IDS_DRIVEERRORCODE_037200; break;
  438. case 0x01: strcode = IDS_DRIVEERRORCODE_037201; break;
  439. case 0x02: strcode = IDS_DRIVEERRORCODE_037202; break;
  440. }
  441. break;
  442. case 0x73:
  443. switch(ascq)
  444. {
  445. case 0x00: strcode = IDS_DRIVEERRORCODE_037300; break;
  446. case 0x02: strcode = IDS_DRIVEERRORCODE_037302; break;
  447. case 0x03: strcode = IDS_DRIVEERRORCODE_037303; break;
  448. case 0x04: strcode = IDS_DRIVEERRORCODE_037304; break;
  449. case 0x05: strcode = IDS_DRIVEERRORCODE_037305; break;
  450. }
  451. break;
  452. }
  453. break;
  454. case 0x04:
  455. switch(asc)
  456. {
  457. case 0x00:
  458. switch(ascq)
  459. {
  460. case 0x17: strcode = IDS_DRIVEERRORCODE_040017; break;
  461. }
  462. break;
  463. case 0x01:
  464. switch(ascq)
  465. {
  466. case 0x00: strcode = IDS_DRIVEERRORCODE_040100; break;
  467. }
  468. break;
  469. case 0x05:
  470. switch(ascq)
  471. {
  472. case 0x00: strcode = IDS_DRIVEERRORCODE_040500; break;
  473. }
  474. break;
  475. case 0x08:
  476. switch(ascq)
  477. {
  478. case 0x00: strcode = IDS_DRIVEERRORCODE_040800; break;
  479. case 0x01: strcode = IDS_DRIVEERRORCODE_040801; break;
  480. case 0x02: strcode = IDS_DRIVEERRORCODE_040802; break;
  481. case 0x03: strcode = IDS_DRIVEERRORCODE_040803; break;
  482. }
  483. break;
  484. case 0x09:
  485. switch(ascq)
  486. {
  487. case 0x00: strcode = IDS_DRIVEERRORCODE_040900; break;
  488. case 0x01: strcode = IDS_DRIVEERRORCODE_040901; break;
  489. case 0x02: strcode = IDS_DRIVEERRORCODE_040902; break;
  490. case 0x03: strcode = IDS_DRIVEERRORCODE_040903; break;
  491. }
  492. break;
  493. case 0x1B:
  494. switch(ascq)
  495. {
  496. case 0x00: strcode = IDS_DRIVEERRORCODE_041B00; break;
  497. }
  498. break;
  499. case 0x1C:
  500. switch(ascq)
  501. {
  502. case 0x00: strcode = IDS_DRIVEERRORCODE_041C00; break;
  503. case 0x01: strcode = IDS_DRIVEERRORCODE_041C01; break;
  504. case 0x02: strcode = IDS_DRIVEERRORCODE_041C02; break;
  505. }
  506. break;
  507. case 0x34:
  508. switch(ascq)
  509. {
  510. case 0x00: strcode = IDS_DRIVEERRORCODE_043400; break;
  511. }
  512. break;
  513. case 0x35:
  514. switch(ascq)
  515. {
  516. case 0x00: strcode = IDS_DRIVEERRORCODE_043500; break;
  517. case 0x03: strcode = IDS_DRIVEERRORCODE_043503; break;
  518. }
  519. break;
  520. case 0x3B:
  521. switch(ascq)
  522. {
  523. case 0x04: strcode = IDS_DRIVEERRORCODE_043B04; break;
  524. case 0x05: strcode = IDS_DRIVEERRORCODE_043B05; break;
  525. case 0x16: strcode = IDS_DRIVEERRORCODE_043B16; break;
  526. }
  527. break;
  528. case 0x3E:
  529. switch(ascq)
  530. {
  531. case 0x01: strcode = IDS_DRIVEERRORCODE_043E01; break;
  532. case 0x02: strcode = IDS_DRIVEERRORCODE_043E02; break;
  533. }
  534. break;
  535. case 0x44:
  536. switch(ascq)
  537. {
  538. case 0x00: strcode = IDS_DRIVEERRORCODE_044400; break;
  539. }
  540. break;
  541. case 0x46:
  542. switch(ascq)
  543. {
  544. case 0x00: strcode = IDS_DRIVEERRORCODE_044600; break;
  545. }
  546. break;
  547. case 0x47:
  548. switch(ascq)
  549. {
  550. case 0x00: strcode = IDS_DRIVEERRORCODE_044700; break;
  551. }
  552. break;
  553. case 0x4A:
  554. switch(ascq)
  555. {
  556. case 0x00: strcode = IDS_DRIVEERRORCODE_044A00; break;
  557. }
  558. break;
  559. case 0x4B:
  560. switch(ascq)
  561. {
  562. case 0x00: strcode = IDS_DRIVEERRORCODE_044B00; break;
  563. }
  564. break;
  565. case 0x4C:
  566. switch(ascq)
  567. {
  568. case 0x00: strcode = IDS_DRIVEERRORCODE_044C00; break;
  569. }
  570. break;
  571. case 0x53:
  572. switch(ascq)
  573. {
  574. case 0x00: strcode = IDS_DRIVEERRORCODE_045300; break;
  575. }
  576. break;
  577. case 0x54:
  578. switch(ascq)
  579. {
  580. case 0x00: strcode = IDS_DRIVEERRORCODE_045400; break;
  581. }
  582. break;
  583. case 0x60:
  584. switch(ascq)
  585. {
  586. case 0x00: strcode = IDS_DRIVEERRORCODE_046000; break;
  587. }
  588. break;
  589. case 0x62:
  590. switch(ascq)
  591. {
  592. case 0x00: strcode = IDS_DRIVEERRORCODE_046200; break;
  593. }
  594. break;
  595. case 0x65:
  596. switch(ascq)
  597. {
  598. case 0x00: strcode = IDS_DRIVEERRORCODE_046500; break;
  599. }
  600. break;
  601. case 0x66:
  602. switch(ascq)
  603. {
  604. case 0x00: strcode = IDS_DRIVEERRORCODE_046600; break;
  605. case 0x01: strcode = IDS_DRIVEERRORCODE_046601; break;
  606. case 0x02: strcode = IDS_DRIVEERRORCODE_046602; break;
  607. case 0x03: strcode = IDS_DRIVEERRORCODE_046603; break;
  608. }
  609. break;
  610. case 0x67:
  611. switch(ascq)
  612. {
  613. case 0x00: strcode = IDS_DRIVEERRORCODE_046700; break;
  614. case 0x01: strcode = IDS_DRIVEERRORCODE_046701; break;
  615. case 0x02: strcode = IDS_DRIVEERRORCODE_046702; break;
  616. case 0x03: strcode = IDS_DRIVEERRORCODE_046703; break;
  617. case 0x04: strcode = IDS_DRIVEERRORCODE_046704; break;
  618. case 0x05: strcode = IDS_DRIVEERRORCODE_046705; break;
  619. case 0x06: strcode = IDS_DRIVEERRORCODE_046706; break;
  620. case 0x07: strcode = IDS_DRIVEERRORCODE_046707; break;
  621. }
  622. break;
  623. case 0x69:
  624. switch(ascq)
  625. {
  626. case 0x01: strcode = IDS_DRIVEERRORCODE_046901; break;
  627. case 0x02: strcode = IDS_DRIVEERRORCODE_046902; break;
  628. }
  629. break;
  630. case 0x6E:
  631. switch(ascq)
  632. {
  633. case 0x00: strcode = IDS_DRIVEERRORCODE_046E00; break;
  634. }
  635. break;
  636. case 0xB6:
  637. switch(ascq)
  638. {
  639. case 0x00: strcode = IDS_DRIVEERRORCODE_04B600; break;
  640. }
  641. break;
  642. }
  643. break;
  644. case 0x05:
  645. switch(asc)
  646. {
  647. case 0x00:
  648. switch(ascq)
  649. {
  650. case 0x11: strcode = IDS_DRIVEERRORCODE_050011; break;
  651. }
  652. break;
  653. case 0x07:
  654. switch(ascq)
  655. {
  656. case 0x00: strcode = IDS_DRIVEERRORCODE_050700; break;
  657. }
  658. break;
  659. case 0x1A:
  660. switch(ascq)
  661. {
  662. case 0x00: strcode = IDS_DRIVEERRORCODE_051A00; break;
  663. }
  664. break;
  665. case 0x20:
  666. switch(ascq)
  667. {
  668. case 0x00: strcode = IDS_DRIVEERRORCODE_052000; break;
  669. }
  670. break;
  671. case 0x21:
  672. switch(ascq)
  673. {
  674. case 0x00: strcode = IDS_DRIVEERRORCODE_052100; break;
  675. case 0x01: strcode = IDS_DRIVEERRORCODE_052101; break;
  676. case 0x02: strcode = IDS_DRIVEERRORCODE_052102; break;
  677. }
  678. break;
  679. case 0x24:
  680. switch(ascq)
  681. {
  682. case 0x00: strcode = IDS_DRIVEERRORCODE_052400; break;
  683. }
  684. break;
  685. case 0x25:
  686. switch(ascq)
  687. {
  688. case 0x00: strcode = IDS_DRIVEERRORCODE_052500; break;
  689. }
  690. break;
  691. case 0x26:
  692. switch(ascq)
  693. {
  694. case 0x00: strcode = IDS_DRIVEERRORCODE_052600; break;
  695. case 0x01: strcode = IDS_DRIVEERRORCODE_052601; break;
  696. case 0x02: strcode = IDS_DRIVEERRORCODE_052602; break;
  697. case 0x03: strcode = IDS_DRIVEERRORCODE_052603; break;
  698. case 0x04: strcode = IDS_DRIVEERRORCODE_052604; break;
  699. }
  700. break;
  701. case 0x27:
  702. switch(ascq)
  703. {
  704. case 0x00: strcode = IDS_DRIVEERRORCODE_052700; break;
  705. case 0x01: strcode = IDS_DRIVEERRORCODE_052701; break;
  706. case 0x02: strcode = IDS_DRIVEERRORCODE_052702; break;
  707. case 0x03: strcode = IDS_DRIVEERRORCODE_052703; break;
  708. case 0x04: strcode = IDS_DRIVEERRORCODE_052704; break;
  709. case 0x05: strcode = IDS_DRIVEERRORCODE_052705; break;
  710. }
  711. break;
  712. case 0x2B:
  713. switch(ascq)
  714. {
  715. case 0x00: strcode = IDS_DRIVEERRORCODE_052B00; break;
  716. }
  717. break;
  718. case 0x2C:
  719. switch(ascq)
  720. {
  721. case 0x00: strcode = IDS_DRIVEERRORCODE_052C00; break;
  722. case 0x01: strcode = IDS_DRIVEERRORCODE_052C01; break;
  723. case 0x02: strcode = IDS_DRIVEERRORCODE_052C02; break;
  724. case 0x03: strcode = IDS_DRIVEERRORCODE_052C03; break;
  725. case 0x04: strcode = IDS_DRIVEERRORCODE_052C04; break;
  726. }
  727. break;
  728. case 0x30:
  729. switch(ascq)
  730. {
  731. case 0x00: strcode = IDS_DRIVEERRORCODE_053000; break;
  732. case 0x02: strcode = IDS_DRIVEERRORCODE_053002; break;
  733. case 0x04: strcode = IDS_DRIVEERRORCODE_053004; break;
  734. case 0x05: strcode = IDS_DRIVEERRORCODE_053005; break;
  735. case 0x06: strcode = IDS_DRIVEERRORCODE_053006; break;
  736. case 0x08: strcode = IDS_DRIVEERRORCODE_053008; break;
  737. case 0x09: strcode = IDS_DRIVEERRORCODE_053009; break;
  738. }
  739. break;
  740. case 0x35:
  741. switch(ascq)
  742. {
  743. case 0x01: strcode = IDS_DRIVEERRORCODE_053501; break;
  744. case 0x04: strcode = IDS_DRIVEERRORCODE_053504; break;
  745. }
  746. break;
  747. case 0x39:
  748. switch(ascq)
  749. {
  750. case 0x00: strcode = IDS_DRIVEERRORCODE_053900; break;
  751. }
  752. break;
  753. case 0x3D:
  754. switch(ascq)
  755. {
  756. case 0x00: strcode = IDS_DRIVEERRORCODE_053D00; break;
  757. }
  758. break;
  759. case 0x43:
  760. switch(ascq)
  761. {
  762. case 0x00: strcode = IDS_DRIVEERRORCODE_054300; break;
  763. }
  764. break;
  765. case 0x53:
  766. switch(ascq)
  767. {
  768. case 0x02: strcode = IDS_DRIVEERRORCODE_055302; break;
  769. }
  770. break;
  771. case 0x55:
  772. switch(ascq)
  773. {
  774. case 0x00: strcode = IDS_DRIVEERRORCODE_055500; break;
  775. }
  776. break;
  777. case 0x63:
  778. switch(ascq)
  779. {
  780. case 0x00: strcode = IDS_DRIVEERRORCODE_056300; break;
  781. case 0x01: strcode = IDS_DRIVEERRORCODE_056301; break;
  782. }
  783. break;
  784. case 0x64:
  785. switch(ascq)
  786. {
  787. case 0x00: strcode = IDS_DRIVEERRORCODE_056400; break;
  788. case 0x01: strcode = IDS_DRIVEERRORCODE_056401; break;
  789. }
  790. break;
  791. case 0x6F:
  792. switch(ascq)
  793. {
  794. case 0x00: strcode = IDS_DRIVEERRORCODE_056F00; break;
  795. case 0x01: strcode = IDS_DRIVEERRORCODE_056F01; break;
  796. case 0x02: strcode = IDS_DRIVEERRORCODE_056F02; break;
  797. case 0x03: strcode = IDS_DRIVEERRORCODE_056F03; break;
  798. case 0x04: strcode = IDS_DRIVEERRORCODE_056F04; break;
  799. case 0x05: strcode = IDS_DRIVEERRORCODE_056F05; break;
  800. }
  801. break;
  802. case 0x72:
  803. switch(ascq)
  804. {
  805. case 0x03: strcode = IDS_DRIVEERRORCODE_057203; break;
  806. case 0x05: strcode = IDS_DRIVEERRORCODE_057205; break;
  807. }
  808. break;
  809. case 0x81:
  810. switch(ascq)
  811. {
  812. case 0x00: strcode = IDS_DRIVEERRORCODE_058100; break;
  813. }
  814. break;
  815. case 0x85:
  816. switch(ascq)
  817. {
  818. case 0x00: strcode = IDS_DRIVEERRORCODE_058500; break;
  819. }
  820. break;
  821. }
  822. break;
  823. case 0x06:
  824. switch(asc)
  825. {
  826. case 0x0A:
  827. switch(ascq)
  828. {
  829. case 0x00: strcode = IDS_DRIVEERRORCODE_060A00; break;
  830. }
  831. break;
  832. case 0x28:
  833. switch(ascq)
  834. {
  835. case 0x00: strcode = IDS_DRIVEERRORCODE_062800; break;
  836. case 0x01: strcode = IDS_DRIVEERRORCODE_062801; break;
  837. }
  838. break;
  839. case 0x29:
  840. switch(ascq)
  841. {
  842. case 0x00: strcode = IDS_DRIVEERRORCODE_062900; break;
  843. case 0x01: strcode = IDS_DRIVEERRORCODE_062901; break;
  844. case 0x02: strcode = IDS_DRIVEERRORCODE_062902; break;
  845. case 0x03: strcode = IDS_DRIVEERRORCODE_062903; break;
  846. case 0x04: strcode = IDS_DRIVEERRORCODE_062904; break;
  847. }
  848. break;
  849. case 0x2A:
  850. switch(ascq)
  851. {
  852. case 0x00: strcode = IDS_DRIVEERRORCODE_062A00; break;
  853. case 0x01: strcode = IDS_DRIVEERRORCODE_062A01; break;
  854. case 0x02: strcode = IDS_DRIVEERRORCODE_062A02; break;
  855. case 0x03: strcode = IDS_DRIVEERRORCODE_062A03; break;
  856. }
  857. break;
  858. case 0x2E:
  859. switch(ascq)
  860. {
  861. case 0x00: strcode = IDS_DRIVEERRORCODE_062E00; break;
  862. }
  863. break;
  864. case 0x2F:
  865. switch(ascq)
  866. {
  867. case 0x00: strcode = IDS_DRIVEERRORCODE_062F00; break;
  868. }
  869. break;
  870. case 0x3B:
  871. switch(ascq)
  872. {
  873. case 0x0D: strcode = IDS_DRIVEERRORCODE_063B0D; break;
  874. case 0x0E: strcode = IDS_DRIVEERRORCODE_063B0E; break;
  875. case 0x0F: strcode = IDS_DRIVEERRORCODE_063B0F; break;
  876. case 0x11: strcode = IDS_DRIVEERRORCODE_063B11; break;
  877. case 0x12: strcode = IDS_DRIVEERRORCODE_063B12; break;
  878. case 0x13: strcode = IDS_DRIVEERRORCODE_063B13; break;
  879. case 0x14: strcode = IDS_DRIVEERRORCODE_063B14; break;
  880. case 0x15: strcode = IDS_DRIVEERRORCODE_063B15; break;
  881. }
  882. break;
  883. case 0x3F:
  884. switch(ascq)
  885. {
  886. case 0x00: strcode = IDS_DRIVEERRORCODE_063F00; break;
  887. case 0x01: strcode = IDS_DRIVEERRORCODE_063F01; break;
  888. case 0x02: strcode = IDS_DRIVEERRORCODE_063F02; break;
  889. case 0x03: strcode = IDS_DRIVEERRORCODE_063F03; break;
  890. }
  891. break;
  892. case 0x55:
  893. switch(ascq)
  894. {
  895. case 0x01: strcode = IDS_DRIVEERRORCODE_065501; break;
  896. }
  897. break;
  898. case 0x5A:
  899. switch(ascq)
  900. {
  901. case 0x00: strcode = IDS_DRIVEERRORCODE_065A00; break;
  902. case 0x01: strcode = IDS_DRIVEERRORCODE_065A01; break;
  903. case 0x02: strcode = IDS_DRIVEERRORCODE_065A02; break;
  904. case 0x03: strcode = IDS_DRIVEERRORCODE_065A03; break;
  905. }
  906. break;
  907. case 0x5B:
  908. switch(ascq)
  909. {
  910. case 0x00: strcode = IDS_DRIVEERRORCODE_065B00; break;
  911. case 0x01: strcode = IDS_DRIVEERRORCODE_065B01; break;
  912. case 0x02: strcode = IDS_DRIVEERRORCODE_065B02; break;
  913. case 0x03: strcode = IDS_DRIVEERRORCODE_065B03; break;
  914. }
  915. break;
  916. case 0x5C:
  917. switch(ascq)
  918. {
  919. case 0x00: strcode = IDS_DRIVEERRORCODE_065C00; break;
  920. case 0x01: strcode = IDS_DRIVEERRORCODE_065C01; break;
  921. }
  922. break;
  923. case 0x5E:
  924. switch(ascq)
  925. {
  926. case 0x00: strcode = IDS_DRIVEERRORCODE_065E00; break;
  927. case 0x01: strcode = IDS_DRIVEERRORCODE_065E01; break;
  928. case 0x02: strcode = IDS_DRIVEERRORCODE_065E02; break;
  929. case 0x03: strcode = IDS_DRIVEERRORCODE_065E03; break;
  930. case 0x04: strcode = IDS_DRIVEERRORCODE_065E04; break;
  931. }
  932. break;
  933. case 0x6B:
  934. switch(ascq)
  935. {
  936. case 0x00: strcode = IDS_DRIVEERRORCODE_066B00; break;
  937. case 0x01: strcode = IDS_DRIVEERRORCODE_066B01; break;
  938. case 0x02: strcode = IDS_DRIVEERRORCODE_066B02; break;
  939. }
  940. break;
  941. }
  942. break;
  943. case 0x07:
  944. switch(asc)
  945. {
  946. case 0x27:
  947. switch(ascq)
  948. {
  949. case 0x00: strcode = IDS_DRIVEERRORCODE_072700; break;
  950. case 0x01: strcode = IDS_DRIVEERRORCODE_072701; break;
  951. case 0x02: strcode = IDS_DRIVEERRORCODE_072702; break;
  952. case 0x03: strcode = IDS_DRIVEERRORCODE_072703; break;
  953. case 0x04: strcode = IDS_DRIVEERRORCODE_072704; break;
  954. case 0x05: strcode = IDS_DRIVEERRORCODE_072705; break;
  955. }
  956. break;
  957. }
  958. break;
  959. case 0x08:
  960. switch(asc)
  961. {
  962. case 0x21:
  963. switch(ascq)
  964. {
  965. case 0x02: strcode = IDS_DRIVEERRORCODE_082102; break;
  966. }
  967. break;
  968. }
  969. break;
  970. case 0x09:
  971. switch(asc)
  972. {
  973. case 0x80:
  974. switch(ascq)
  975. {
  976. case 0x00: strcode = IDS_DRIVEERRORCODE_098000; break;
  977. case 0x01: strcode = IDS_DRIVEERRORCODE_098001; break;
  978. case 0x05: strcode = IDS_DRIVEERRORCODE_098005; break;
  979. case 0x06: strcode = IDS_DRIVEERRORCODE_098006; break;
  980. case 0x07: strcode = IDS_DRIVEERRORCODE_098007; break;
  981. case 0x0A: strcode = IDS_DRIVEERRORCODE_09800A; break;
  982. case 0x0B: strcode = IDS_DRIVEERRORCODE_09800B; break;
  983. case 0x0C: strcode = IDS_DRIVEERRORCODE_09800C; break;
  984. }
  985. break;
  986. }
  987. break;
  988. }
  989. LoadStringW(hResource, strcode, buffer, cchBuffer);
  990. if (IDS_UNKNOWN == strcode) StringCchCatW(buffer, cchBuffer, L".");
  991. return buffer;
  992. }