Artifact ea77bc83084315f4c0c09a7f023ec498d1753218:
0000: 2f 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a /***************
0010: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0020: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0030: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0040: 2a 2a 2a 2a 2a 2a 2a 2a 5c 0a 2a 20 20 20 20 20 ********\.*
0050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0060: 20 20 20 20 20 20 20 20 20 20 65 72 72 6f 72 72 errorr
0070: 65 70 2e 64 20 20 20 20 20 20 20 20 20 20 20 20 ep.d
0080: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0090: 20 20 2a 0a 2a 20 20 20 20 20 20 20 20 20 20 20 *.*
00a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00d0: 20 20 20 20 20 20 20 20 20 20 20 20 2a 0a 2a 20 *.*
00e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00f0: 20 20 20 20 20 20 57 69 6e 64 6f 77 73 20 41 50 Windows AP
0100: 49 20 68 65 61 64 65 72 20 6d 6f 64 75 6c 65 20 I header module
0110: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0120: 20 20 20 20 20 20 2a 0a 2a 20 20 20 20 20 20 20 *.*
0130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0140: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0150: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0170: 2a 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 *.*
0180: 20 20 20 20 54 72 61 6e 73 6c 61 74 65 64 20 66 Translated f
0190: 72 6f 6d 20 4d 69 6e 47 57 20 57 69 6e 64 6f 77 rom MinGW Window
01a0: 73 20 68 65 61 64 65 72 73 20 20 20 20 20 20 20 s headers
01b0: 20 20 20 20 20 20 20 20 20 20 2a 0a 2a 20 20 20 *.*
01c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
01d0: 20 20 20 20 20 20 20 20 62 79 20 53 74 65 77 61 by Stewa
01e0: 72 74 20 47 6f 72 64 6f 6e 20 20 20 20 20 20 20 rt Gordon
01f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0200: 20 20 20 20 2a 0a 2a 20 20 20 20 20 20 20 20 20 *.*
0210: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0220: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0230: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 0a *.
0250: 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 *
0260: 20 20 20 20 20 20 20 20 50 6c 61 63 65 64 20 69 Placed i
0270: 6e 74 6f 20 70 75 62 6c 69 63 20 64 6f 6d 61 69 nto public domai
0280: 6e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 n
0290: 20 20 20 20 20 20 20 20 2a 0a 5c 2a 2a 2a 2a 2a *.\*****
02a0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
02b0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
02c0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
02d0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
02e0: 2a 2a 2f 0a 6d 6f 64 75 6c 65 20 77 69 6e 33 32 **/.module win32
02f0: 2e 65 72 72 6f 72 72 65 70 3b 0a 0a 70 72 69 76 .errorrep;..priv
0300: 61 74 65 20 69 6d 70 6f 72 74 20 77 69 6e 33 32 ate import win32
0310: 2e 77 33 32 61 70 69 2c 20 77 69 6e 33 32 2e 77 .w32api, win32.w
0320: 69 6e 64 65 66 3b 0a 0a 73 74 61 74 69 63 20 61 indef;..static a
0330: 73 73 65 72 74 20 28 5f 57 49 4e 33 32 5f 57 49 ssert (_WIN32_WI
0340: 4e 4e 54 20 3e 3d 20 30 78 35 30 31 2c 0a 09 22 NNT >= 0x501,.."
0350: 77 69 6e 33 32 2e 65 72 72 6f 72 72 65 70 20 69 win32.errorrep i
0360: 73 20 61 76 61 69 6c 61 62 6c 65 20 6f 6e 6c 79 s available only
0370: 20 69 66 20 76 65 72 73 69 6f 6e 20 57 69 6e 64 if version Wind
0380: 6f 77 73 58 50 2c 20 57 69 6e 64 6f 77 73 32 30 owsXP, Windows20
0390: 30 33 20 22 0a 09 22 6f 72 20 57 69 6e 64 6f 77 03 ".."or Window
03a0: 73 56 69 73 74 61 20 69 73 20 73 65 74 22 29 3b sVista is set");
03b0: 0a 0a 65 6e 75 6d 20 45 46 61 75 6c 74 52 65 70 ..enum EFaultRep
03c0: 52 65 74 56 61 6c 20 7b 0a 09 66 72 72 76 4f 6b RetVal {..frrvOk
03d0: 2c 0a 09 66 72 72 76 4f 6b 4d 61 6e 69 66 65 73 ,..frrvOkManifes
03e0: 74 2c 0a 09 66 72 72 76 4f 6b 51 75 65 75 65 64 t,..frrvOkQueued
03f0: 2c 0a 09 66 72 72 76 45 72 72 2c 0a 09 66 72 72 ,..frrvErr,..frr
0400: 76 45 72 72 4e 6f 44 57 2c 0a 09 66 72 72 76 45 vErrNoDW,..frrvE
0410: 72 72 54 69 6d 65 6f 75 74 2c 0a 09 66 72 72 76 rrTimeout,..frrv
0420: 4c 61 75 6e 63 68 44 65 62 75 67 67 65 72 2c 0a LaunchDebugger,.
0430: 09 66 72 72 76 4f 6b 48 65 61 64 6c 65 73 73 20 .frrvOkHeadless
0440: 2f 2f 20 3d 20 37 0a 7d 0a 0a 65 78 74 65 72 6e // = 7.}..extern
0450: 20 28 57 69 6e 64 6f 77 73 29 20 7b 0a 09 42 4f (Windows) {..BO
0460: 4f 4c 20 41 64 64 45 52 45 78 63 6c 75 64 65 64 OL AddERExcluded
0470: 41 70 70 6c 69 63 61 74 69 6f 6e 41 28 4c 50 43 ApplicationA(LPC
0480: 53 54 52 29 3b 0a 09 42 4f 4f 4c 20 41 64 64 45 STR);..BOOL AddE
0490: 52 45 78 63 6c 75 64 65 64 41 70 70 6c 69 63 61 RExcludedApplica
04a0: 74 69 6f 6e 57 28 4c 50 43 57 53 54 52 29 3b 0a tionW(LPCWSTR);.
04b0: 09 45 46 61 75 6c 74 52 65 70 52 65 74 56 61 6c .EFaultRepRetVal
04c0: 20 52 65 70 6f 72 74 46 61 75 6c 74 28 4c 50 45 ReportFault(LPE
04d0: 58 43 45 50 54 49 4f 4e 5f 50 4f 49 4e 54 45 52 XCEPTION_POINTER
04e0: 53 2c 20 44 57 4f 52 44 29 3b 0a 7d 0a 0a 76 65 S, DWORD);.}..ve
04f0: 72 73 69 6f 6e 20 28 55 6e 69 63 6f 64 65 29 20 rsion (Unicode)
0500: 7b 0a 09 61 6c 69 61 73 20 41 64 64 45 52 45 78 {..alias AddEREx
0510: 63 6c 75 64 65 64 41 70 70 6c 69 63 61 74 69 6f cludedApplicatio
0520: 6e 57 20 41 64 64 45 52 45 78 63 6c 75 64 65 64 nW AddERExcluded
0530: 41 70 70 6c 69 63 61 74 69 6f 6e 3b 0a 7d 20 65 Application;.} e
0540: 6c 73 65 20 7b 0a 09 61 6c 69 61 73 20 41 64 64 lse {..alias Add
0550: 45 52 45 78 63 6c 75 64 65 64 41 70 70 6c 69 63 ERExcludedApplic
0560: 61 74 69 6f 6e 41 20 41 64 64 45 52 45 78 63 6c ationA AddERExcl
0570: 75 64 65 64 41 70 70 6c 69 63 61 74 69 6f 6e 3b udedApplication;
0580: 0a 7d 0a .}.