| ... | @@ -2693,7 +2693,10 @@ pub const MEM_RESERVE_PLACEHOLDERS = 0x2; | ... | @@ -2693,7 +2693,10 @@ pub const MEM_RESERVE_PLACEHOLDERS = 0x2; |
| 2693 | pub const MEM_DECOMMIT = 0x4000; | 2693 | pub const MEM_DECOMMIT = 0x4000; |
| 2694 | pub const MEM_RELEASE = 0x8000; | 2694 | pub const MEM_RELEASE = 0x8000; |
| 2695 | | 2695 | |
| 2696 | pub const PTHREAD_START_ROUTINE = fn (LPVOID) callconv(.C) DWORD; | 2696 | pub const PTHREAD_START_ROUTINE = switch (builtin.zig_backend) { |
| | 2697 | .stage1 => fn (LPVOID) callconv(.C) DWORD, |
| | 2698 | else => *const fn (LPVOID) callconv(.C) DWORD, |
| | 2699 | }; |
| 2697 | pub const LPTHREAD_START_ROUTINE = PTHREAD_START_ROUTINE; | 2700 | pub const LPTHREAD_START_ROUTINE = PTHREAD_START_ROUTINE; |
| 2698 | | 2701 | |
| 2699 | pub const WIN32_FIND_DATAW = extern struct { | 2702 | pub const WIN32_FIND_DATAW = extern struct { |
| ... | @@ -2866,7 +2869,10 @@ pub const IMAGE_TLS_DIRECTORY = extern struct { | ... | @@ -2866,7 +2869,10 @@ pub const IMAGE_TLS_DIRECTORY = extern struct { |
| 2866 | pub const IMAGE_TLS_DIRECTORY64 = IMAGE_TLS_DIRECTORY; | 2869 | pub const IMAGE_TLS_DIRECTORY64 = IMAGE_TLS_DIRECTORY; |
| 2867 | pub const IMAGE_TLS_DIRECTORY32 = IMAGE_TLS_DIRECTORY; | 2870 | pub const IMAGE_TLS_DIRECTORY32 = IMAGE_TLS_DIRECTORY; |
| 2868 | | 2871 | |
| 2869 | pub const PIMAGE_TLS_CALLBACK = ?fn (PVOID, DWORD, PVOID) callconv(.C) void; | 2872 | pub const PIMAGE_TLS_CALLBACK = switch (builtin.zig_backend) { |
| | 2873 | .stage1 => ?fn (PVOID, DWORD, PVOID) callconv(.C) void, |
| | 2874 | else => ?*const fn (PVOID, DWORD, PVOID) callconv(.C) void, |
| | 2875 | }; |
| 2870 | | 2876 | |
| 2871 | pub const PROV_RSA_FULL = 1; | 2877 | pub const PROV_RSA_FULL = 1; |
| 2872 | | 2878 | |
| ... | @@ -2892,7 +2898,10 @@ pub const FILE_ACTION_MODIFIED = 0x00000003; | ... | @@ -2892,7 +2898,10 @@ pub const FILE_ACTION_MODIFIED = 0x00000003; |
| 2892 | pub const FILE_ACTION_RENAMED_OLD_NAME = 0x00000004; | 2898 | pub const FILE_ACTION_RENAMED_OLD_NAME = 0x00000004; |
| 2893 | pub const FILE_ACTION_RENAMED_NEW_NAME = 0x00000005; | 2899 | pub const FILE_ACTION_RENAMED_NEW_NAME = 0x00000005; |
| 2894 | | 2900 | |
| 2895 | pub const LPOVERLAPPED_COMPLETION_ROUTINE = ?fn (DWORD, DWORD, *OVERLAPPED) callconv(.C) void; | 2901 | pub const LPOVERLAPPED_COMPLETION_ROUTINE = switch (builtin.zig_backend) { |
| | 2902 | .stage1 => ?fn (DWORD, DWORD, *OVERLAPPED) callconv(.C) void, |
| | 2903 | else => ?*const fn (DWORD, DWORD, *OVERLAPPED) callconv(.C) void, |
| | 2904 | }; |
| 2896 | | 2905 | |
| 2897 | pub const FILE_NOTIFY_CHANGE_CREATION = 64; | 2906 | pub const FILE_NOTIFY_CHANGE_CREATION = 64; |
| 2898 | pub const FILE_NOTIFY_CHANGE_SIZE = 8; | 2907 | pub const FILE_NOTIFY_CHANGE_SIZE = 8; |
| ... | @@ -2945,7 +2954,10 @@ pub const RTL_CRITICAL_SECTION = extern struct { | ... | @@ -2945,7 +2954,10 @@ pub const RTL_CRITICAL_SECTION = extern struct { |
| 2945 | pub const CRITICAL_SECTION = RTL_CRITICAL_SECTION; | 2954 | pub const CRITICAL_SECTION = RTL_CRITICAL_SECTION; |
| 2946 | pub const INIT_ONCE = RTL_RUN_ONCE; | 2955 | pub const INIT_ONCE = RTL_RUN_ONCE; |
| 2947 | pub const INIT_ONCE_STATIC_INIT = RTL_RUN_ONCE_INIT; | 2956 | pub const INIT_ONCE_STATIC_INIT = RTL_RUN_ONCE_INIT; |
| 2948 | pub const INIT_ONCE_FN = fn (InitOnce: *INIT_ONCE, Parameter: ?*anyopaque, Context: ?*anyopaque) callconv(.C) BOOL; | 2957 | pub const INIT_ONCE_FN = switch (builtin.zig_backend) { |
| | 2958 | .stage1 => fn (InitOnce: *INIT_ONCE, Parameter: ?*anyopaque, Context: ?*anyopaque) callconv(.C) BOOL, |
| | 2959 | else => *const fn (InitOnce: *INIT_ONCE, Parameter: ?*anyopaque, Context: ?*anyopaque) callconv(.C) BOOL, |
| | 2960 | }; |
| 2949 | | 2961 | |
| 2950 | pub const RTL_RUN_ONCE = extern struct { | 2962 | pub const RTL_RUN_ONCE = extern struct { |
| 2951 | Ptr: ?*anyopaque, | 2963 | Ptr: ?*anyopaque, |
| ... | @@ -3230,7 +3242,10 @@ pub const EXCEPTION_POINTERS = extern struct { | ... | @@ -3230,7 +3242,10 @@ pub const EXCEPTION_POINTERS = extern struct { |
| 3230 | ContextRecord: *std.os.windows.CONTEXT, | 3242 | ContextRecord: *std.os.windows.CONTEXT, |
| 3231 | }; | 3243 | }; |
| 3232 | | 3244 | |
| 3233 | pub const VECTORED_EXCEPTION_HANDLER = fn (ExceptionInfo: *EXCEPTION_POINTERS) callconv(WINAPI) c_long; | 3245 | pub const VECTORED_EXCEPTION_HANDLER = switch (builtin.zig_backend) { |
| | 3246 | .stage1 => fn (ExceptionInfo: *EXCEPTION_POINTERS) callconv(WINAPI) c_long, |
| | 3247 | else => *const fn (ExceptionInfo: *EXCEPTION_POINTERS) callconv(WINAPI) c_long, |
| | 3248 | }; |
| 3234 | | 3249 | |
| 3235 | pub const OBJECT_ATTRIBUTES = extern struct { | 3250 | pub const OBJECT_ATTRIBUTES = extern struct { |
| 3236 | Length: ULONG, | 3251 | Length: ULONG, |
| ... | @@ -3506,7 +3521,10 @@ pub const RTL_DRIVE_LETTER_CURDIR = extern struct { | ... | @@ -3506,7 +3521,10 @@ pub const RTL_DRIVE_LETTER_CURDIR = extern struct { |
| 3506 | DosPath: UNICODE_STRING, | 3521 | DosPath: UNICODE_STRING, |
| 3507 | }; | 3522 | }; |
| 3508 | | 3523 | |
| 3509 | pub const PPS_POST_PROCESS_INIT_ROUTINE = ?fn () callconv(.C) void; | 3524 | pub const PPS_POST_PROCESS_INIT_ROUTINE = switch (builtin.zig_backend) { |
| | 3525 | .stage1 => ?fn () callconv(.C) void, |
| | 3526 | else => ?*const fn () callconv(.C) void, |
| | 3527 | }; |
| 3510 | | 3528 | |
| 3511 | pub const FILE_BOTH_DIR_INFORMATION = extern struct { | 3529 | pub const FILE_BOTH_DIR_INFORMATION = extern struct { |
| 3512 | NextEntryOffset: ULONG, | 3530 | NextEntryOffset: ULONG, |
| ... | @@ -3526,7 +3544,10 @@ pub const FILE_BOTH_DIR_INFORMATION = extern struct { | ... | @@ -3526,7 +3544,10 @@ pub const FILE_BOTH_DIR_INFORMATION = extern struct { |
| 3526 | }; | 3544 | }; |
| 3527 | pub const FILE_BOTH_DIRECTORY_INFORMATION = FILE_BOTH_DIR_INFORMATION; | 3545 | pub const FILE_BOTH_DIRECTORY_INFORMATION = FILE_BOTH_DIR_INFORMATION; |
| 3528 | | 3546 | |
| 3529 | pub const IO_APC_ROUTINE = fn (PVOID, *IO_STATUS_BLOCK, ULONG) callconv(.C) void; | 3547 | pub const IO_APC_ROUTINE = switch (builtin.zig_backend) { |
| | 3548 | .stage1 => fn (PVOID, *IO_STATUS_BLOCK, ULONG) callconv(.C) void, |
| | 3549 | else => *const fn (PVOID, *IO_STATUS_BLOCK, ULONG) callconv(.C) void, |
| | 3550 | }; |
| 3530 | | 3551 | |
| 3531 | pub const CURDIR = extern struct { | 3552 | pub const CURDIR = extern struct { |
| 3532 | DosPath: UNICODE_STRING, | 3553 | DosPath: UNICODE_STRING, |
| ... | @@ -3598,8 +3619,14 @@ pub const ENUM_PAGE_FILE_INFORMATION = extern struct { | ... | @@ -3598,8 +3619,14 @@ pub const ENUM_PAGE_FILE_INFORMATION = extern struct { |
| 3598 | PeakUsage: SIZE_T, | 3619 | PeakUsage: SIZE_T, |
| 3599 | }; | 3620 | }; |
| 3600 | | 3621 | |
| 3601 | pub const PENUM_PAGE_FILE_CALLBACKW = ?fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCWSTR) callconv(.C) BOOL; | 3622 | pub const PENUM_PAGE_FILE_CALLBACKW = switch (builtin.zig_backend) { |
| 3602 | pub const PENUM_PAGE_FILE_CALLBACKA = ?fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCSTR) callconv(.C) BOOL; | 3623 | .stage1 => ?fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCWSTR) callconv(.C) BOOL, |
| | 3624 | else => ?*const fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCWSTR) callconv(.C) BOOL, |
| | 3625 | }; |
| | 3626 | pub const PENUM_PAGE_FILE_CALLBACKA = switch (builtin.zig_backend) { |
| | 3627 | .stage1 => ?fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCSTR) callconv(.C) BOOL, |
| | 3628 | else => ?*const fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCSTR) callconv(.C) BOOL, |
| | 3629 | }; |
| 3603 | | 3630 | |
| 3604 | pub const PSAPI_WS_WATCH_INFORMATION_EX = extern struct { | 3631 | pub const PSAPI_WS_WATCH_INFORMATION_EX = extern struct { |
| 3605 | BasicInfo: PSAPI_WS_WATCH_INFORMATION, | 3632 | BasicInfo: PSAPI_WS_WATCH_INFORMATION, |
| ... | @@ -3699,4 +3726,7 @@ pub const CTRL_CLOSE_EVENT: DWORD = 2; | ... | @@ -3699,4 +3726,7 @@ pub const CTRL_CLOSE_EVENT: DWORD = 2; |
| 3699 | pub const CTRL_LOGOFF_EVENT: DWORD = 5; | 3726 | pub const CTRL_LOGOFF_EVENT: DWORD = 5; |
| 3700 | pub const CTRL_SHUTDOWN_EVENT: DWORD = 6; | 3727 | pub const CTRL_SHUTDOWN_EVENT: DWORD = 6; |
| 3701 | | 3728 | |
| 3702 | pub const HANDLER_ROUTINE = fn (dwCtrlType: DWORD) callconv(.C) BOOL; | 3729 | pub const HANDLER_ROUTINE = switch (builtin.zig_backend) { |
| | 3730 | .stage1 => fn (dwCtrlType: DWORD) callconv(.C) BOOL, |
| | 3731 | else => *const fn (dwCtrlType: DWORD) callconv(.C) BOOL, |
| | 3732 | }; |