123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996 |
- #include "./main.h"
- #include "./resource.h"
- #include <strsafe.h>
- wchar_t* GetUnitStatusText(wchar_t *buffer, unsigned int cchBuffer, DWORD sense, DWORD asc, DWORD ascq)
- {
- DWORD strcode = IDS_UNKNOWN;
- switch(sense)
- {
- case 0x00:
- switch(asc)
- {
- case 0x00:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_000000; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_000001; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_000002; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_000003; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_000004; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_000005; break;
- case 0x11: strcode = IDS_DRIVEERRORCODE_000011; break;
- case 0x12: strcode = IDS_DRIVEERRORCODE_000012; break;
- case 0x13: strcode = IDS_DRIVEERRORCODE_000013; break;
- case 0x14: strcode = IDS_DRIVEERRORCODE_000014; break;
- case 0x15: strcode = IDS_DRIVEERRORCODE_000015; break;
- case 0x16: strcode = IDS_DRIVEERRORCODE_000016; break;
- }
- break;
- }
- break;
- case 0x01:
- switch(asc)
- {
- case 0x0B:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_010B00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_010B01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_010B02; break;
- }
- break;
- case 0x0C:
- switch(ascq)
- {
- case 0x0A: strcode = IDS_DRIVEERRORCODE_010C0A; break;
- }
- break;
- case 0x17:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_011700; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_011701; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_011702; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_011703; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_011704; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_011705; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_011706; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_011707; break;
- case 0x08: strcode = IDS_DRIVEERRORCODE_011708; break;
- case 0x09: strcode = IDS_DRIVEERRORCODE_011709; break;
- }
- break;
- case 0x18:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_011800; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_011801; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_011802; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_011803; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_011804; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_011805; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_011806; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_011807; break;
- case 0x08: strcode = IDS_DRIVEERRORCODE_011808; break;
- }
- break;
- case 0x1E:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_011E00; break;
- }
- break;
- case 0x37:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_013700; break;
- }
- break;
- case 0x5D:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_015D00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_015D01; break;
- case 0xFF: strcode = IDS_DRIVEERRORCODE_015DFF; break;
- }
- break;
- case 0x6A:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_016A00; break;
- }
- break;
- case 0x73:
- switch(ascq)
- {
- case 0x01: strcode = IDS_DRIVEERRORCODE_017301; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_017306; break;
- }
- break;
- }
- break;
- case 0x02:
- switch(asc)
- {
- case 0x04:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_020400; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_020401; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_020402; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_020403; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_020404; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_020405; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_020406; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_020407; break;
- case 0x08: strcode = IDS_DRIVEERRORCODE_020408; break;
- }
- break;
- case 0x05:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_020500; break;
- }
- break;
- case 0x06:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_020600; break;
- }
- break;
- case 0x30:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_023000; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_023001; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_023002; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_023003; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_023004; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_023005; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_023007; break;
- }
- break;
- case 0x35:
- switch(ascq)
- {
- case 0x02: strcode = IDS_DRIVEERRORCODE_023502; break;
- }
- break;
- case 0x3A:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_023A00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_023A01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_023A02; break;
- }
- break;
- case 0x3E:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_023E00; break;
- }
- break;
- case 0x53:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_025300; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_025302; break;
- }
- break;
- case 0x57:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_025700; break;
- }
- break;
- case 0x68:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_026800; break;
- }
- break;
- }
- break;
- case 0x03:
- switch(asc)
- {
- case 0x00:
- switch(ascq)
- {
- case 0x14: strcode = IDS_DRIVEERRORCODE_030014; break;
- }
- break;
- case 0x02:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_030200; break;
- case 0x80: strcode = IDS_DRIVEERRORCODE_030280; break;
- case 0x81: strcode = IDS_DRIVEERRORCODE_030281; break;
- case 0x82: strcode = IDS_DRIVEERRORCODE_030282; break;
- case 0x83: strcode = IDS_DRIVEERRORCODE_030283; break;
- }
- break;
- case 0x03:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_030300; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_030301; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_030302; break;
- }
- break;
- case 0x06:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_030600; break;
- }
- break;
- case 0x0C:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_030C00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_030C01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_030C02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_030C03; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_030C04; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_030C05; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_030C06; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_030C07; break;
- case 0x08: strcode = IDS_DRIVEERRORCODE_030C08; break;
- case 0x09: strcode = IDS_DRIVEERRORCODE_030C09; break;
- case 0x0A: strcode = IDS_DRIVEERRORCODE_030C0A; break;
- }
- break;
- case 0x10:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031000; break;
- }
- break;
- case 0x11:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031100; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_031101; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_031102; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_031103; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_031104; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_031105; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_031106; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_031107; break;
- case 0x08: strcode = IDS_DRIVEERRORCODE_031108; break;
- case 0x09: strcode = IDS_DRIVEERRORCODE_031109; break;
- case 0x0A: strcode = IDS_DRIVEERRORCODE_03110A; break;
- case 0x0B: strcode = IDS_DRIVEERRORCODE_03110B; break;
- case 0x0C: strcode = IDS_DRIVEERRORCODE_03110C; break;
- case 0x0D: strcode = IDS_DRIVEERRORCODE_03110D; break;
- case 0x0E: strcode = IDS_DRIVEERRORCODE_03110E; break;
- case 0x0F: strcode = IDS_DRIVEERRORCODE_03110F; break;
- case 0x10: strcode = IDS_DRIVEERRORCODE_031110; break;
- }
- break;
- case 0x12:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031200; break;
- }
- break;
- case 0x13:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031300; break;
- }
- break;
- case 0x14:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031400; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_031401; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_031402; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_031403; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_031404; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_031405; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_031406; break;
- }
- break;
- case 0x15:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031500; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_031501; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_031502; break;
- }
- break;
- case 0x16:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031600; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_031601; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_031602; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_031603; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_031604; break;
- }
- break;
- case 0x19:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031900; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_031901; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_031902; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_031903; break;
- }
- break;
- case 0x1F:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_031F00; break;
- }
- break;
- case 0x2D:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_032D00; break;
- }
- break;
- case 0x30:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_033000; break;
- }
- break;
- case 0x31:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_033100; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_033101; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_033102; break;
- }
- break;
- case 0x32:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_033200; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_033201; break;
- }
- break;
- case 0x33:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_033300; break;
- }
- break;
- case 0x36:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_033600; break;
- }
- break;
- case 0x3B:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_033B00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_033B01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_033B02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_033B03; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_033B06; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_033B07; break;
- case 0x08: strcode = IDS_DRIVEERRORCODE_033B08; break;
- case 0x09: strcode = IDS_DRIVEERRORCODE_033B09; break;
- case 0x0A: strcode = IDS_DRIVEERRORCODE_033B0A; break;
- case 0x0B: strcode = IDS_DRIVEERRORCODE_033B0B; break;
- case 0x0C: strcode = IDS_DRIVEERRORCODE_033B0C; break;
- }
- break;
- case 0x51:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_035100; break;
- }
- break;
- case 0x52:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_035200; break;
- }
- break;
- case 0x57:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_035700; break;
- }
- break;
- case 0x5C:
- switch(ascq)
- {
- case 0x02: strcode = IDS_DRIVEERRORCODE_035C02; break;
- }
- break;
- case 0x61:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_036100; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_036101; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_036102; break;
- }
- break;
- case 0x6C:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_036C00; break;
-
- }
- break;
- case 0x6D:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_036D00; break;
- }
- break;
- case 0x70: strcode = IDS_DRIVEERRORCODE_0370NN; break;
- case 0x71:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_037100; break;
- }
- break;
- case 0x72:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_037200; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_037201; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_037202; break;
- }
- break;
- case 0x73:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_037300; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_037302; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_037303; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_037304; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_037305; break;
- }
- break;
- }
- break;
- case 0x04:
- switch(asc)
- {
- case 0x00:
- switch(ascq)
- {
- case 0x17: strcode = IDS_DRIVEERRORCODE_040017; break;
- }
- break;
- case 0x01:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_040100; break;
- }
- break;
- case 0x05:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_040500; break;
- }
- break;
- case 0x08:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_040800; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_040801; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_040802; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_040803; break;
- }
- break;
- case 0x09:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_040900; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_040901; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_040902; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_040903; break;
- }
- break;
- case 0x1B:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_041B00; break;
- }
- break;
- case 0x1C:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_041C00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_041C01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_041C02; break;
- }
- break;
- case 0x34:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_043400; break;
- }
- break;
- case 0x35:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_043500; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_043503; break;
- }
- break;
- case 0x3B:
- switch(ascq)
- {
- case 0x04: strcode = IDS_DRIVEERRORCODE_043B04; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_043B05; break;
- case 0x16: strcode = IDS_DRIVEERRORCODE_043B16; break;
- }
- break;
- case 0x3E:
- switch(ascq)
- {
- case 0x01: strcode = IDS_DRIVEERRORCODE_043E01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_043E02; break;
- }
- break;
- case 0x44:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_044400; break;
- }
- break;
- case 0x46:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_044600; break;
- }
- break;
- case 0x47:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_044700; break;
- }
- break;
- case 0x4A:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_044A00; break;
- }
- break;
- case 0x4B:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_044B00; break;
- }
- break;
- case 0x4C:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_044C00; break;
- }
- break;
- case 0x53:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_045300; break;
- }
- break;
- case 0x54:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_045400; break;
- }
- break;
- case 0x60:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_046000; break;
- }
- break;
- case 0x62:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_046200; break;
- }
- break;
- case 0x65:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_046500; break;
- }
- break;
- case 0x66:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_046600; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_046601; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_046602; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_046603; break;
- }
- break;
- case 0x67:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_046700; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_046701; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_046702; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_046703; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_046704; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_046705; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_046706; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_046707; break;
- }
- break;
- case 0x69:
- switch(ascq)
- {
- case 0x01: strcode = IDS_DRIVEERRORCODE_046901; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_046902; break;
- }
- break;
- case 0x6E:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_046E00; break;
- }
- break;
- case 0xB6:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_04B600; break;
- }
- break;
- }
- break;
- case 0x05:
- switch(asc)
- {
- case 0x00:
- switch(ascq)
- {
- case 0x11: strcode = IDS_DRIVEERRORCODE_050011; break;
- }
- break;
- case 0x07:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_050700; break;
- }
- break;
- case 0x1A:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_051A00; break;
- }
- break;
- case 0x20:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_052000; break;
- }
- break;
- case 0x21:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_052100; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_052101; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_052102; break;
- }
- break;
- case 0x24:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_052400; break;
- }
- break;
- case 0x25:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_052500; break;
- }
- break;
- case 0x26:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_052600; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_052601; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_052602; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_052603; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_052604; break;
- }
- break;
- case 0x27:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_052700; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_052701; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_052702; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_052703; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_052704; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_052705; break;
- }
- break;
- case 0x2B:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_052B00; break;
- }
- break;
- case 0x2C:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_052C00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_052C01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_052C02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_052C03; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_052C04; break;
- }
- break;
- case 0x30:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_053000; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_053002; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_053004; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_053005; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_053006; break;
- case 0x08: strcode = IDS_DRIVEERRORCODE_053008; break;
- case 0x09: strcode = IDS_DRIVEERRORCODE_053009; break;
- }
- break;
- case 0x35:
- switch(ascq)
- {
- case 0x01: strcode = IDS_DRIVEERRORCODE_053501; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_053504; break;
- }
- break;
- case 0x39:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_053900; break;
- }
- break;
- case 0x3D:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_053D00; break;
- }
- break;
- case 0x43:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_054300; break;
- }
- break;
- case 0x53:
- switch(ascq)
- {
- case 0x02: strcode = IDS_DRIVEERRORCODE_055302; break;
- }
- break;
- case 0x55:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_055500; break;
- }
- break;
- case 0x63:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_056300; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_056301; break;
- }
- break;
- case 0x64:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_056400; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_056401; break;
- }
- break;
- case 0x6F:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_056F00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_056F01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_056F02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_056F03; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_056F04; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_056F05; break;
- }
- break;
- case 0x72:
- switch(ascq)
- {
- case 0x03: strcode = IDS_DRIVEERRORCODE_057203; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_057205; break;
- }
- break;
- case 0x81:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_058100; break;
- }
- break;
- case 0x85:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_058500; break;
- }
- break;
- }
- break;
- case 0x06:
- switch(asc)
- {
- case 0x0A:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_060A00; break;
- }
- break;
- case 0x28:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_062800; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_062801; break;
- }
- break;
- case 0x29:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_062900; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_062901; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_062902; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_062903; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_062904; break;
- }
- break;
- case 0x2A:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_062A00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_062A01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_062A02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_062A03; break;
- }
- break;
- case 0x2E:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_062E00; break;
- }
- break;
- case 0x2F:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_062F00; break;
- }
- break;
- case 0x3B:
- switch(ascq)
- {
- case 0x0D: strcode = IDS_DRIVEERRORCODE_063B0D; break;
- case 0x0E: strcode = IDS_DRIVEERRORCODE_063B0E; break;
- case 0x0F: strcode = IDS_DRIVEERRORCODE_063B0F; break;
- case 0x11: strcode = IDS_DRIVEERRORCODE_063B11; break;
- case 0x12: strcode = IDS_DRIVEERRORCODE_063B12; break;
- case 0x13: strcode = IDS_DRIVEERRORCODE_063B13; break;
- case 0x14: strcode = IDS_DRIVEERRORCODE_063B14; break;
- case 0x15: strcode = IDS_DRIVEERRORCODE_063B15; break;
- }
- break;
- case 0x3F:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_063F00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_063F01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_063F02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_063F03; break;
- }
- break;
- case 0x55:
- switch(ascq)
- {
- case 0x01: strcode = IDS_DRIVEERRORCODE_065501; break;
- }
- break;
- case 0x5A:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_065A00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_065A01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_065A02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_065A03; break;
- }
- break;
- case 0x5B:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_065B00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_065B01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_065B02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_065B03; break;
- }
- break;
- case 0x5C:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_065C00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_065C01; break;
- }
- break;
- case 0x5E:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_065E00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_065E01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_065E02; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_065E03; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_065E04; break;
- }
- break;
- case 0x6B:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_066B00; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_066B01; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_066B02; break;
- }
- break;
- }
- break;
- case 0x07:
- switch(asc)
- {
- case 0x27:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_072700; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_072701; break;
- case 0x02: strcode = IDS_DRIVEERRORCODE_072702; break;
- case 0x03: strcode = IDS_DRIVEERRORCODE_072703; break;
- case 0x04: strcode = IDS_DRIVEERRORCODE_072704; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_072705; break;
- }
- break;
- }
- break;
- case 0x08:
- switch(asc)
- {
- case 0x21:
- switch(ascq)
- {
- case 0x02: strcode = IDS_DRIVEERRORCODE_082102; break;
- }
- break;
- }
- break;
- case 0x09:
- switch(asc)
- {
- case 0x80:
- switch(ascq)
- {
- case 0x00: strcode = IDS_DRIVEERRORCODE_098000; break;
- case 0x01: strcode = IDS_DRIVEERRORCODE_098001; break;
- case 0x05: strcode = IDS_DRIVEERRORCODE_098005; break;
- case 0x06: strcode = IDS_DRIVEERRORCODE_098006; break;
- case 0x07: strcode = IDS_DRIVEERRORCODE_098007; break;
- case 0x0A: strcode = IDS_DRIVEERRORCODE_09800A; break;
- case 0x0B: strcode = IDS_DRIVEERRORCODE_09800B; break;
- case 0x0C: strcode = IDS_DRIVEERRORCODE_09800C; break;
- }
- break;
- }
- break;
- }
- LoadStringW(hResource, strcode, buffer, cchBuffer);
- if (IDS_UNKNOWN == strcode) StringCchCatW(buffer, cchBuffer, L".");
- return buffer;
- }
|