authorgravatar for vincent@rischmann.frVincent Rischmann <vincent@rischmann.fr> 2021-04-19 23:14:33+02:00
committergravatar for vincent@rischmann.frVincent Rischmann <vincent@rischmann.fr> 2021-07-29 10:57:08+02:00
log0be1e74902e9bfb7dd35d2a3ba927db76f6d67c7
treecae7140e3a2f34a87f31432ae44f77af0856a738
parentc0f40a5fe62bbd8e5e0ad5d127dbd4411c1e36f1

windows/kernel32: add LocalFree, SetThreadDescription and GetThreadDescription


1 files changed, 5 insertions(+), 0 deletions(-)

lib/std/os/windows/kernel32.zig+5
......@@ -192,6 +192,8 @@ pub extern "kernel32" fn HeapValidate(hHeap: HANDLE, dwFlags: DWORD, lpMem: ?*co
192192pub extern "kernel32" fn VirtualAlloc(lpAddress: ?LPVOID, dwSize: SIZE_T, flAllocationType: DWORD, flProtect: DWORD) callconv(WINAPI) ?LPVOID;
193193pub extern "kernel32" fn VirtualFree(lpAddress: ?LPVOID, dwSize: SIZE_T, dwFreeType: DWORD) callconv(WINAPI) BOOL;
194194
195pub extern "kernel32" fn LocalFree(hMem: HLOCAL) callconv(WINAPI) ?HLOCAL;
196
195197pub extern "kernel32" fn MoveFileExW(
196198 lpExistingFileName: [*:0]const u16,
197199 lpNewFileName: [*:0]const u16,
......@@ -342,3 +344,6 @@ pub extern "kernel32" fn SleepConditionVariableSRW(
342344pub extern "kernel32" fn TryAcquireSRWLockExclusive(s: *SRWLOCK) callconv(WINAPI) BOOLEAN;
343345pub extern "kernel32" fn AcquireSRWLockExclusive(s: *SRWLOCK) callconv(WINAPI) void;
344346pub extern "kernel32" fn ReleaseSRWLockExclusive(s: *SRWLOCK) callconv(WINAPI) void;
347
348pub extern "kernel32" fn SetThreadDescription(hThread: HANDLE, lpThreadDescription: LPCWSTR) callconv(WINAPI) HRESULT;
349pub extern "kernel32" fn GetThreadDescription(hThread: HANDLE, ppszThreadDescription: *LPWSTR) callconv(WINAPI) HRESULT;