| ... | ... | @@ -1,18 +1,19 @@ |
| 1 | 1 | pub const ERROR = @import("error.zig"); |
| 2 | 2 | |
| 3 | pub extern "advapi32" stdcallcc fn CryptAcquireContextA(phProv: &HCRYPTPROV, pszContainer: ?LPCSTR, |
| 4 | pszProvider: ?LPCSTR, dwProvType: DWORD, dwFlags: DWORD) -> bool; |
| 5 | |
| 6 | pub extern "advapi32" stdcallcc fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlags: DWORD) -> bool; |
| 7 | |
| 8 | pub extern "advapi32" stdcallcc fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: &BYTE) -> bool; |
| 9 | |
| 10 | |
| 3 | 11 | pub extern "kernel32" stdcallcc fn CloseHandle(hObject: HANDLE) -> BOOL; |
| 4 | 12 | |
| 5 | 13 | pub extern "kernel32" stdcallcc fn CreateFileA(lpFileName: LPCSTR, dwDesiredAccess: DWORD, |
| 6 | 14 | dwShareMode: DWORD, lpSecurityAttributes: ?LPSECURITY_ATTRIBUTES, dwCreationDisposition: DWORD, |
| 7 | 15 | dwFlagsAndAttributes: DWORD, hTemplateFile: ?HANDLE) -> HANDLE; |
| 8 | 16 | |
| 9 | | pub extern "kernel32" stdcallcc fn CryptAcquireContext(phProv: &HCRYPTPROV, pszContainer: LPCTSTR, |
| 10 | | pszProvider: LPCTSTR, dwProvType: DWORD, dwFlags: DWORD) -> bool; |
| 11 | | |
| 12 | | pub extern "kernel32" stdcallcc fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlags: DWORD) -> bool; |
| 13 | | |
| 14 | | pub extern "kernel32" stdcallcc fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: &BYTE) -> bool; |
| 15 | | |
| 16 | 17 | pub extern "kernel32" stdcallcc fn DeleteFileA(lpFileName: LPCSTR) -> bool; |
| 17 | 18 | |
| 18 | 19 | pub extern "kernel32" stdcallcc fn ExitProcess(exit_code: UINT) -> noreturn; |