Artifact 73049331b65677f82178b6f564e62452f060ceec:
- File
src/win32/rpcnterr.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
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 0d 0a 2a 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 20 72 70 63 6e 74 rpcnt 0070: 65 72 72 2e 64 20 20 20 20 20 20 20 20 20 20 20 err.d 0080: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0090: 20 20 20 2a 0d 0a 2a 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 20 20 2a 0d *. 00e0: 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .* 00f0: 20 20 20 20 20 20 20 20 20 57 69 6e 64 6f 77 73 Windows 0100: 20 41 50 49 20 68 65 61 64 65 72 20 6d 6f 64 75 API header modu 0110: 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 le 0120: 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 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: 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 *..* 0180: 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 6c 61 Transla 0190: 74 65 64 20 66 72 6f 6d 20 4d 69 6e 47 57 20 57 ted from MinGW W 01a0: 69 6e 64 6f 77 73 20 68 65 61 64 65 72 73 20 20 indows headers 01b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a * 01c0: 0d 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..* 01d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 01e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 01f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0200: 20 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 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 50 6c 61 63 65 64 20 69 6e 74 6f Placed into 0230: 20 70 75 62 6c 69 63 20 64 6f 6d 61 69 6e 20 20 public domain 0240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0250: 20 20 20 20 20 2a 0d 0a 5c 2a 2a 2a 2a 2a 2a 2a *..\******* 0260: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0270: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0280: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0290: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 02a0: 2f 0d 0a 6d 6f 64 75 6c 65 20 77 69 6e 33 32 2e /..module win32. 02b0: 72 70 63 6e 74 65 72 72 3b 0d 0a 0d 0a 69 6d 70 rpcnterr;....imp 02c0: 6f 72 74 20 77 69 6e 33 32 2e 77 69 6e 65 72 72 ort win32.winerr 02d0: 6f 72 3b 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 69 or;....enum : ui 02e0: 6e 74 20 7b 0d 0a 09 52 50 43 5f 53 5f 4f 4b 20 nt {...RPC_S_OK 02f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0300: 20 20 20 20 3d 20 45 52 52 4f 52 5f 53 55 43 43 = ERROR_SUCC 0310: 45 53 53 2c 0d 0a 09 52 50 43 5f 53 5f 49 4e 56 ESS,...RPC_S_INV 0320: 41 4c 49 44 5f 41 52 47 20 20 20 20 20 20 20 20 ALID_ARG 0330: 20 20 20 20 3d 20 45 52 52 4f 52 5f 49 4e 56 41 = ERROR_INVA 0340: 4c 49 44 5f 50 41 52 41 4d 45 54 45 52 2c 0d 0a LID_PARAMETER,.. 0350: 09 52 50 43 5f 53 5f 4f 55 54 5f 4f 46 5f 4d 45 .RPC_S_OUT_OF_ME 0360: 4d 4f 52 59 20 20 20 20 20 20 20 20 20 20 3d 20 MORY = 0370: 45 52 52 4f 52 5f 4f 55 54 4f 46 4d 45 4d 4f 52 ERROR_OUTOFMEMOR 0380: 59 2c 0d 0a 09 52 50 43 5f 53 5f 4f 55 54 5f 4f Y,...RPC_S_OUT_O 0390: 46 5f 54 48 52 45 41 44 53 20 20 20 20 20 20 20 F_THREADS 03a0: 20 20 3d 20 45 52 52 4f 52 5f 4d 41 58 5f 54 48 = ERROR_MAX_TH 03b0: 52 44 53 5f 52 45 41 43 48 45 44 2c 0d 0a 09 52 RDS_REACHED,...R 03c0: 50 43 5f 53 5f 49 4e 56 41 4c 49 44 5f 4c 45 56 PC_S_INVALID_LEV 03d0: 45 4c 20 20 20 20 20 20 20 20 20 20 3d 20 45 52 EL = ER 03e0: 52 4f 52 5f 49 4e 56 41 4c 49 44 5f 50 41 52 41 ROR_INVALID_PARA 03f0: 4d 45 54 45 52 2c 0d 0a 09 52 50 43 5f 53 5f 42 METER,...RPC_S_B 0400: 55 46 46 45 52 5f 54 4f 4f 5f 53 4d 41 4c 4c 20 UFFER_TOO_SMALL 0410: 20 20 20 20 20 20 3d 20 45 52 52 4f 52 5f 49 4e = ERROR_IN 0420: 53 55 46 46 49 43 49 45 4e 54 5f 42 55 46 46 45 SUFFICIENT_BUFFE 0430: 52 2c 0d 0a 09 52 50 43 5f 53 5f 49 4e 56 41 4c R,...RPC_S_INVAL 0440: 49 44 5f 53 45 43 55 52 49 54 59 5f 44 45 53 43 ID_SECURITY_DESC 0450: 20 20 3d 20 45 52 52 4f 52 5f 49 4e 56 41 4c 49 = ERROR_INVALI 0460: 44 5f 53 45 43 55 52 49 54 59 5f 44 45 53 43 52 D_SECURITY_DESCR 0470: 2c 0d 0a 09 52 50 43 5f 53 5f 41 43 43 45 53 53 ,...RPC_S_ACCESS 0480: 5f 44 45 4e 49 45 44 20 20 20 20 20 20 20 20 20 _DENIED 0490: 20 3d 20 45 52 52 4f 52 5f 41 43 43 45 53 53 5f = ERROR_ACCESS_ 04a0: 44 45 4e 49 45 44 2c 0d 0a 09 52 50 43 5f 53 5f DENIED,...RPC_S_ 04b0: 53 45 52 56 45 52 5f 4f 55 54 5f 4f 46 5f 4d 45 SERVER_OUT_OF_ME 04c0: 4d 4f 52 59 20 20 20 3d 20 45 52 52 4f 52 5f 4e MORY = ERROR_N 04d0: 4f 54 5f 45 4e 4f 55 47 48 5f 53 45 52 56 45 52 OT_ENOUGH_SERVER 04e0: 5f 4d 45 4d 4f 52 59 2c 0d 0a 09 52 50 43 5f 58 _MEMORY,...RPC_X 04f0: 5f 4e 4f 5f 4d 45 4d 4f 52 59 20 20 20 20 20 20 _NO_MEMORY 0500: 20 20 20 20 20 20 20 20 3d 20 52 50 43 5f 53 5f = RPC_S_ 0510: 4f 55 54 5f 4f 46 5f 4d 45 4d 4f 52 59 2c 0d 0a OUT_OF_MEMORY,.. 0520: 09 52 50 43 5f 58 5f 49 4e 56 41 4c 49 44 5f 42 .RPC_X_INVALID_B 0530: 4f 55 4e 44 20 20 20 20 20 20 20 20 20 20 3d 20 OUND = 0540: 52 50 43 5f 53 5f 49 4e 56 41 4c 49 44 5f 42 4f RPC_S_INVALID_BO 0550: 55 4e 44 2c 0d 0a 09 52 50 43 5f 58 5f 49 4e 56 UND,...RPC_X_INV 0560: 41 4c 49 44 5f 54 41 47 20 20 20 20 20 20 20 20 ALID_TAG 0570: 20 20 20 20 3d 20 52 50 43 5f 53 5f 49 4e 56 41 = RPC_S_INVA 0580: 4c 49 44 5f 54 41 47 2c 0d 0a 09 52 50 43 5f 58 LID_TAG,...RPC_X 0590: 5f 45 4e 55 4d 5f 56 41 4c 55 45 5f 54 4f 4f 5f _ENUM_VALUE_TOO_ 05a0: 4c 41 52 47 45 20 20 20 3d 20 52 50 43 5f 58 5f LARGE = RPC_X_ 05b0: 45 4e 55 4d 5f 56 41 4c 55 45 5f 4f 55 54 5f 4f ENUM_VALUE_OUT_O 05c0: 46 5f 52 41 4e 47 45 2c 0d 0a 09 52 50 43 5f 58 F_RANGE,...RPC_X 05d0: 5f 53 53 5f 43 4f 4e 54 45 58 54 5f 4d 49 53 4d _SS_CONTEXT_MISM 05e0: 41 54 43 48 20 20 20 20 3d 20 45 52 52 4f 52 5f ATCH = ERROR_ 05f0: 49 4e 56 41 4c 49 44 5f 48 41 4e 44 4c 45 2c 0d INVALID_HANDLE,. 0600: 0a 09 52 50 43 5f 58 5f 49 4e 56 41 4c 49 44 5f ..RPC_X_INVALID_ 0610: 42 55 46 46 45 52 20 20 20 20 20 20 20 20 20 3d BUFFER = 0620: 20 45 52 52 4f 52 5f 49 4e 56 41 4c 49 44 5f 55 ERROR_INVALID_U 0630: 53 45 52 5f 42 55 46 46 45 52 2c 0d 0a 09 52 50 SER_BUFFER,...RP 0640: 43 5f 58 5f 49 4e 56 41 4c 49 44 5f 50 49 50 45 C_X_INVALID_PIPE 0650: 5f 4f 50 45 52 41 54 49 4f 4e 20 3d 20 52 50 43 _OPERATION = RPC 0660: 5f 58 5f 57 52 4f 4e 47 5f 50 49 50 45 5f 4f 52 _X_WRONG_PIPE_OR 0670: 44 45 52 0d 0a 7d 0d 0a DER..}..