authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-09-24 04:09:13-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-09-24 04:09:13-04:00
log59410a2f138e2a24a81e795b18e18f3dbfc2009d
tree8899b7f4886383ff97acf21981340dd0afcf8d8a
parentba41be67f02158df964543d21b30c83f1b17550d

windows API functions are not stdcalls


1 files changed, 13 insertions(+), 13 deletions(-)

std/os/windows/index.zig+13-13
......@@ -1,46 +1,46 @@
11pub const ERROR = @import("error.zig");
22
3pub extern "kernel32" stdcallcc fn CryptAcquireContext(phProv: &HCRYPTPROV, pszContainer: LPCTSTR,
3pub extern "kernel32" fn CryptAcquireContext(phProv: &HCRYPTPROV, pszContainer: LPCTSTR,
44 pszProvider: LPCTSTR, dwProvType: DWORD, dwFlags: DWORD) -> bool;
55
6pub extern "kernel32" stdcallcc fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlags: DWORD) -> bool;
6pub extern "kernel32" fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlags: DWORD) -> bool;
77
8pub extern "kernel32" stdcallcc fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: &BYTE) -> bool;
8pub extern "kernel32" fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: &BYTE) -> bool;
99
10pub extern "kernel32" stdcallcc fn ExitProcess(exit_code: UINT) -> noreturn;
10pub extern "kernel32" fn ExitProcess(exit_code: UINT) -> noreturn;
1111
12pub extern "kernel32" stdcallcc fn GetCommandLine() -> LPTSTR;
12pub extern "kernel32" fn GetCommandLine() -> LPTSTR;
1313
14pub extern "kernel32" stdcallcc fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: &DWORD) -> bool;
14pub extern "kernel32" fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: &DWORD) -> bool;
1515
1616/// Retrieves the calling thread's last-error code value. The last-error code is maintained on a per-thread basis.
1717/// Multiple threads do not overwrite each other's last-error code.
18pub extern "kernel32" stdcallcc fn GetLastError() -> DWORD;
18pub extern "kernel32" fn GetLastError() -> DWORD;
1919
2020/// Retrieves file information for the specified file.
21pub extern "kernel32" stdcallcc fn GetFileInformationByHandleEx(in_hFile: HANDLE,
21pub extern "kernel32" fn GetFileInformationByHandleEx(in_hFile: HANDLE,
2222 in_FileInformationClass: FILE_INFO_BY_HANDLE_CLASS, out_lpFileInformation: &c_void,
2323 in_dwBufferSize: DWORD) -> bool;
2424
2525/// Retrieves a handle to the specified standard device (standard input, standard output, or standard error).
26pub extern "kernel32" stdcallcc fn GetStdHandle(in_nStdHandle: DWORD) -> ?HANDLE;
26pub extern "kernel32" fn GetStdHandle(in_nStdHandle: DWORD) -> ?HANDLE;
2727
2828/// Reads data from the specified file or input/output (I/O) device. Reads occur at the position specified by the file pointer if supported by the device.
2929/// This function is designed for both synchronous and asynchronous operations. For a similar function designed solely for asynchronous operation, see ReadFileEx.
30pub extern "kernel32" stdcallcc fn ReadFile(in_hFile: HANDLE, out_lpBuffer: LPVOID,
30pub extern "kernel32" fn ReadFile(in_hFile: HANDLE, out_lpBuffer: LPVOID,
3131 in_nNumberOfBytesToRead: DWORD, out_lpNumberOfBytesRead: &DWORD,
3232 in_out_lpOverlapped: ?&OVERLAPPED) -> BOOL;
3333
3434/// Writes data to the specified file or input/output (I/O) device.
3535/// This function is designed for both synchronous and asynchronous operation. For a similar function designed solely for asynchronous operation, see WriteFileEx.
36pub extern "kernel32" stdcallcc fn WriteFile(in_hFile: HANDLE, in_lpBuffer: &const c_void,
36pub extern "kernel32" fn WriteFile(in_hFile: HANDLE, in_lpBuffer: &const c_void,
3737 in_nNumberOfBytesToWrite: DWORD, out_lpNumberOfBytesWritten: ?&DWORD,
3838 in_out_lpOverlapped: ?&OVERLAPPED) -> BOOL;
3939
40pub extern "kernel32" stdcallcc fn Sleep(dwMilliseconds: DWORD);
40pub extern "kernel32" fn Sleep(dwMilliseconds: DWORD);
4141
4242
43pub extern "user32" stdcallcc fn MessageBoxA(hWnd: ?HANDLE, lpText: ?LPCTSTR, lpCaption: ?LPCTSTR, uType: UINT) -> c_int;
43pub extern "user32" fn MessageBoxA(hWnd: ?HANDLE, lpText: ?LPCTSTR, lpCaption: ?LPCTSTR, uType: UINT) -> c_int;
4444
4545pub const PROV_RSA_FULL = 1;
4646