| ... | @@ -2101,8 +2101,8 @@ pub fn UnlockFile( | ... | @@ -2101,8 +2101,8 @@ pub fn UnlockFile( |
| 2101 | | 2101 | |
| 2102 | /// This is a workaround for the C backend until zig has the ability to put | 2102 | /// This is a workaround for the C backend until zig has the ability to put |
| 2103 | /// C code in inline assembly. | 2103 | /// C code in inline assembly. |
| 2104 | extern fn zig_x86_windows_teb() callconv(.C) *anyopaque; | 2104 | extern fn zig_x86_windows_teb() callconv(.c) *anyopaque; |
| 2105 | extern fn zig_x86_64_windows_teb() callconv(.C) *anyopaque; | 2105 | extern fn zig_x86_64_windows_teb() callconv(.c) *anyopaque; |
| 2106 | | 2106 | |
| 2107 | pub fn teb() *TEB { | 2107 | pub fn teb() *TEB { |
| 2108 | return switch (native_arch) { | 2108 | return switch (native_arch) { |
| ... | @@ -3567,7 +3567,7 @@ pub const MEM_RESERVE_PLACEHOLDERS = 0x2; | ... | @@ -3567,7 +3567,7 @@ pub const MEM_RESERVE_PLACEHOLDERS = 0x2; |
| 3567 | pub const MEM_DECOMMIT = 0x4000; | 3567 | pub const MEM_DECOMMIT = 0x4000; |
| 3568 | pub const MEM_RELEASE = 0x8000; | 3568 | pub const MEM_RELEASE = 0x8000; |
| 3569 | | 3569 | |
| 3570 | pub const PTHREAD_START_ROUTINE = *const fn (LPVOID) callconv(.C) DWORD; | 3570 | pub const PTHREAD_START_ROUTINE = *const fn (LPVOID) callconv(.winapi) DWORD; |
| 3571 | pub const LPTHREAD_START_ROUTINE = PTHREAD_START_ROUTINE; | 3571 | pub const LPTHREAD_START_ROUTINE = PTHREAD_START_ROUTINE; |
| 3572 | | 3572 | |
| 3573 | pub const WIN32_FIND_DATAW = extern struct { | 3573 | pub const WIN32_FIND_DATAW = extern struct { |
| ... | @@ -3745,7 +3745,7 @@ pub const IMAGE_TLS_DIRECTORY = extern struct { | ... | @@ -3745,7 +3745,7 @@ pub const IMAGE_TLS_DIRECTORY = extern struct { |
| 3745 | pub const IMAGE_TLS_DIRECTORY64 = IMAGE_TLS_DIRECTORY; | 3745 | pub const IMAGE_TLS_DIRECTORY64 = IMAGE_TLS_DIRECTORY; |
| 3746 | pub const IMAGE_TLS_DIRECTORY32 = IMAGE_TLS_DIRECTORY; | 3746 | pub const IMAGE_TLS_DIRECTORY32 = IMAGE_TLS_DIRECTORY; |
| 3747 | | 3747 | |
| 3748 | pub const PIMAGE_TLS_CALLBACK = ?*const fn (PVOID, DWORD, PVOID) callconv(.C) void; | 3748 | pub const PIMAGE_TLS_CALLBACK = ?*const fn (PVOID, DWORD, PVOID) callconv(.winapi) void; |
| 3749 | | 3749 | |
| 3750 | pub const PROV_RSA_FULL = 1; | 3750 | pub const PROV_RSA_FULL = 1; |
| 3751 | | 3751 | |
| ... | @@ -3843,7 +3843,7 @@ pub const RTL_QUERY_REGISTRY_ROUTINE = ?*const fn ( | ... | @@ -3843,7 +3843,7 @@ pub const RTL_QUERY_REGISTRY_ROUTINE = ?*const fn ( |
| 3843 | ULONG, | 3843 | ULONG, |
| 3844 | ?*anyopaque, | 3844 | ?*anyopaque, |
| 3845 | ?*anyopaque, | 3845 | ?*anyopaque, |
| 3846 | ) callconv(WINAPI) NTSTATUS; | 3846 | ) callconv(.winapi) NTSTATUS; |
| 3847 | | 3847 | |
| 3848 | /// Path is a full path | 3848 | /// Path is a full path |
| 3849 | pub const RTL_REGISTRY_ABSOLUTE = 0; | 3849 | pub const RTL_REGISTRY_ABSOLUTE = 0; |
| ... | @@ -3940,7 +3940,7 @@ pub const FILE_ACTION_MODIFIED = 0x00000003; | ... | @@ -3940,7 +3940,7 @@ pub const FILE_ACTION_MODIFIED = 0x00000003; |
| 3940 | pub const FILE_ACTION_RENAMED_OLD_NAME = 0x00000004; | 3940 | pub const FILE_ACTION_RENAMED_OLD_NAME = 0x00000004; |
| 3941 | pub const FILE_ACTION_RENAMED_NEW_NAME = 0x00000005; | 3941 | pub const FILE_ACTION_RENAMED_NEW_NAME = 0x00000005; |
| 3942 | | 3942 | |
| 3943 | pub const LPOVERLAPPED_COMPLETION_ROUTINE = ?*const fn (DWORD, DWORD, *OVERLAPPED) callconv(.C) void; | 3943 | pub const LPOVERLAPPED_COMPLETION_ROUTINE = ?*const fn (DWORD, DWORD, *OVERLAPPED) callconv(.winapi) void; |
| 3944 | | 3944 | |
| 3945 | pub const FileNotifyChangeFilter = packed struct(DWORD) { | 3945 | pub const FileNotifyChangeFilter = packed struct(DWORD) { |
| 3946 | file_name: bool = false, | 3946 | file_name: bool = false, |
| ... | @@ -4003,7 +4003,7 @@ pub const RTL_CRITICAL_SECTION = extern struct { | ... | @@ -4003,7 +4003,7 @@ pub const RTL_CRITICAL_SECTION = extern struct { |
| 4003 | pub const CRITICAL_SECTION = RTL_CRITICAL_SECTION; | 4003 | pub const CRITICAL_SECTION = RTL_CRITICAL_SECTION; |
| 4004 | pub const INIT_ONCE = RTL_RUN_ONCE; | 4004 | pub const INIT_ONCE = RTL_RUN_ONCE; |
| 4005 | pub const INIT_ONCE_STATIC_INIT = RTL_RUN_ONCE_INIT; | 4005 | pub const INIT_ONCE_STATIC_INIT = RTL_RUN_ONCE_INIT; |
| 4006 | pub const INIT_ONCE_FN = *const fn (InitOnce: *INIT_ONCE, Parameter: ?*anyopaque, Context: ?*anyopaque) callconv(.C) BOOL; | 4006 | pub const INIT_ONCE_FN = *const fn (InitOnce: *INIT_ONCE, Parameter: ?*anyopaque, Context: ?*anyopaque) callconv(.winapi) BOOL; |
| 4007 | | 4007 | |
| 4008 | pub const RTL_RUN_ONCE = extern struct { | 4008 | pub const RTL_RUN_ONCE = extern struct { |
| 4009 | Ptr: ?*anyopaque, | 4009 | Ptr: ?*anyopaque, |
| ... | @@ -4467,7 +4467,7 @@ pub const EXCEPTION_POINTERS = extern struct { | ... | @@ -4467,7 +4467,7 @@ pub const EXCEPTION_POINTERS = extern struct { |
| 4467 | ContextRecord: *CONTEXT, | 4467 | ContextRecord: *CONTEXT, |
| 4468 | }; | 4468 | }; |
| 4469 | | 4469 | |
| 4470 | pub const VECTORED_EXCEPTION_HANDLER = *const fn (ExceptionInfo: *EXCEPTION_POINTERS) callconv(WINAPI) c_long; | 4470 | pub const VECTORED_EXCEPTION_HANDLER = *const fn (ExceptionInfo: *EXCEPTION_POINTERS) callconv(.winapi) c_long; |
| 4471 | | 4471 | |
| 4472 | pub const EXCEPTION_DISPOSITION = i32; | 4472 | pub const EXCEPTION_DISPOSITION = i32; |
| 4473 | pub const EXCEPTION_ROUTINE = *const fn ( | 4473 | pub const EXCEPTION_ROUTINE = *const fn ( |
| ... | @@ -4475,7 +4475,7 @@ pub const EXCEPTION_ROUTINE = *const fn ( | ... | @@ -4475,7 +4475,7 @@ pub const EXCEPTION_ROUTINE = *const fn ( |
| 4475 | EstablisherFrame: PVOID, | 4475 | EstablisherFrame: PVOID, |
| 4476 | ContextRecord: *(Self.CONTEXT), | 4476 | ContextRecord: *(Self.CONTEXT), |
| 4477 | DispatcherContext: PVOID, | 4477 | DispatcherContext: PVOID, |
| 4478 | ) callconv(WINAPI) EXCEPTION_DISPOSITION; | 4478 | ) callconv(.winapi) EXCEPTION_DISPOSITION; |
| 4479 | | 4479 | |
| 4480 | pub const UNWIND_HISTORY_TABLE_SIZE = 12; | 4480 | pub const UNWIND_HISTORY_TABLE_SIZE = 12; |
| 4481 | pub const UNWIND_HISTORY_TABLE_ENTRY = extern struct { | 4481 | pub const UNWIND_HISTORY_TABLE_ENTRY = extern struct { |
| ... | @@ -4851,7 +4851,7 @@ pub const RTL_DRIVE_LETTER_CURDIR = extern struct { | ... | @@ -4851,7 +4851,7 @@ pub const RTL_DRIVE_LETTER_CURDIR = extern struct { |
| 4851 | DosPath: UNICODE_STRING, | 4851 | DosPath: UNICODE_STRING, |
| 4852 | }; | 4852 | }; |
| 4853 | | 4853 | |
| 4854 | pub const PPS_POST_PROCESS_INIT_ROUTINE = ?*const fn () callconv(.C) void; | 4854 | pub const PPS_POST_PROCESS_INIT_ROUTINE = ?*const fn () callconv(.winapi) void; |
| 4855 | | 4855 | |
| 4856 | pub const FILE_DIRECTORY_INFORMATION = extern struct { | 4856 | pub const FILE_DIRECTORY_INFORMATION = extern struct { |
| 4857 | NextEntryOffset: ULONG, | 4857 | NextEntryOffset: ULONG, |
| ... | @@ -4905,7 +4905,7 @@ pub fn FileInformationIterator(comptime FileInformationType: type) type { | ... | @@ -4905,7 +4905,7 @@ pub fn FileInformationIterator(comptime FileInformationType: type) type { |
| 4905 | }; | 4905 | }; |
| 4906 | } | 4906 | } |
| 4907 | | 4907 | |
| 4908 | pub const IO_APC_ROUTINE = *const fn (PVOID, *IO_STATUS_BLOCK, ULONG) callconv(.C) void; | 4908 | pub const IO_APC_ROUTINE = *const fn (PVOID, *IO_STATUS_BLOCK, ULONG) callconv(.winapi) void; |
| 4909 | | 4909 | |
| 4910 | pub const CURDIR = extern struct { | 4910 | pub const CURDIR = extern struct { |
| 4911 | DosPath: UNICODE_STRING, | 4911 | DosPath: UNICODE_STRING, |
| ... | @@ -5009,8 +5009,8 @@ pub const ENUM_PAGE_FILE_INFORMATION = extern struct { | ... | @@ -5009,8 +5009,8 @@ pub const ENUM_PAGE_FILE_INFORMATION = extern struct { |
| 5009 | PeakUsage: SIZE_T, | 5009 | PeakUsage: SIZE_T, |
| 5010 | }; | 5010 | }; |
| 5011 | | 5011 | |
| 5012 | pub const PENUM_PAGE_FILE_CALLBACKW = ?*const fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCWSTR) callconv(.C) BOOL; | 5012 | pub const PENUM_PAGE_FILE_CALLBACKW = ?*const fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCWSTR) callconv(.winapi) BOOL; |
| 5013 | pub const PENUM_PAGE_FILE_CALLBACKA = ?*const fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCSTR) callconv(.C) BOOL; | 5013 | pub const PENUM_PAGE_FILE_CALLBACKA = ?*const fn (?LPVOID, *ENUM_PAGE_FILE_INFORMATION, LPCSTR) callconv(.winapi) BOOL; |
| 5014 | | 5014 | |
| 5015 | pub const PSAPI_WS_WATCH_INFORMATION_EX = extern struct { | 5015 | pub const PSAPI_WS_WATCH_INFORMATION_EX = extern struct { |
| 5016 | BasicInfo: PSAPI_WS_WATCH_INFORMATION, | 5016 | BasicInfo: PSAPI_WS_WATCH_INFORMATION, |
| ... | @@ -5122,7 +5122,7 @@ pub const CTRL_CLOSE_EVENT: DWORD = 2; | ... | @@ -5122,7 +5122,7 @@ pub const CTRL_CLOSE_EVENT: DWORD = 2; |
| 5122 | pub const CTRL_LOGOFF_EVENT: DWORD = 5; | 5122 | pub const CTRL_LOGOFF_EVENT: DWORD = 5; |
| 5123 | pub const CTRL_SHUTDOWN_EVENT: DWORD = 6; | 5123 | pub const CTRL_SHUTDOWN_EVENT: DWORD = 6; |
| 5124 | | 5124 | |
| 5125 | pub const HANDLER_ROUTINE = *const fn (dwCtrlType: DWORD) callconv(WINAPI) BOOL; | 5125 | pub const HANDLER_ROUTINE = *const fn (dwCtrlType: DWORD) callconv(.winapi) BOOL; |
| 5126 | | 5126 | |
| 5127 | /// Processor feature enumeration. | 5127 | /// Processor feature enumeration. |
| 5128 | pub const PF = enum(DWORD) { | 5128 | pub const PF = enum(DWORD) { |