| ... | @@ -7,13 +7,15 @@ pub extern "kernel32" stdcallcc fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlag | ... | @@ -7,13 +7,15 @@ pub extern "kernel32" stdcallcc fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlag |
| 7 | | 7 | |
| 8 | pub extern "kernel32" stdcallcc fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: &BYTE) -> bool; | 8 | pub extern "kernel32" stdcallcc fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: &BYTE) -> bool; |
| 9 | | 9 | |
| | 10 | pub extern "kernel32" stdcallcc fn DeleteFileA(lpFileName: LPCSTR) -> bool; |
| | 11 | |
| 10 | pub extern "kernel32" stdcallcc fn ExitProcess(exit_code: UINT) -> noreturn; | 12 | pub extern "kernel32" stdcallcc fn ExitProcess(exit_code: UINT) -> noreturn; |
| 11 | | 13 | |
| 12 | pub extern "kernel32" stdcallcc fn GetCommandLine() -> LPTSTR; | 14 | pub extern "kernel32" stdcallcc fn GetCommandLine() -> LPTSTR; |
| 13 | | 15 | |
| 14 | pub extern "kernel32" stdcallcc fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: &DWORD) -> bool; | 16 | pub extern "kernel32" stdcallcc fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: &DWORD) -> bool; |
| 15 | | 17 | |
| 16 | pub extern "kernel32" stdcallcc fn GetCurrentDirectoryA(nBufferLength: WORD, lpBuffer: ?LPTSTR) -> DWORD; | 18 | pub extern "kernel32" stdcallcc fn GetCurrentDirectoryA(nBufferLength: WORD, lpBuffer: ?LPSTR) -> DWORD; |
| 17 | | 19 | |
| 18 | /// Retrieves the calling thread's last-error code value. The last-error code is maintained on a per-thread basis. | 20 | /// Retrieves the calling thread's last-error code value. The last-error code is maintained on a per-thread basis. |
| 19 | /// Multiple threads do not overwrite each other's last-error code. | 21 | /// Multiple threads do not overwrite each other's last-error code. |
| ... | @@ -68,6 +70,7 @@ pub const HANDLE = &c_void; | ... | @@ -68,6 +70,7 @@ pub const HANDLE = &c_void; |
| 68 | pub const HINSTANCE = &@OpaqueType(); | 70 | pub const HINSTANCE = &@OpaqueType(); |
| 69 | pub const HCRYPTPROV = ULONG_PTR; | 71 | pub const HCRYPTPROV = ULONG_PTR; |
| 70 | pub const LPCTSTR = &const TCHAR; | 72 | pub const LPCTSTR = &const TCHAR; |
| | 73 | pub const LPCSTR = &const CHAR; |
| 71 | pub const LPDWORD = &DWORD; | 74 | pub const LPDWORD = &DWORD; |
| 72 | pub const LPVOID = &c_void; | 75 | pub const LPVOID = &c_void; |
| 73 | pub const PVOID = &c_void; | 76 | pub const PVOID = &c_void; |