diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-19 15:13:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-19 15:13:10 +0100 |
| commit | 8a13c9a8c84f4e1ca297e7963880691f110843a2 (patch) | |
| tree | 279943b86ad8e4a094907c8a803acca8a7c4e9b6 /core/sys | |
| parent | b7560b7e00aaad7ef696b5ce55460f8e35ebf135 (diff) | |
| parent | ecde06e3a31179bd8f86383fd65cfbce31ab6d9a (diff) | |
Merge branch 'master' into windows-llvm-13.0.0windows-llvm-13.0.0
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/windows/kernel32.odin | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/sys/windows/kernel32.odin b/core/sys/windows/kernel32.odin index 2b63595a4..0c612a974 100644 --- a/core/sys/windows/kernel32.odin +++ b/core/sys/windows/kernel32.odin @@ -132,6 +132,21 @@ foreign kernel32 { SetThreadPriority :: proc(thread: HANDLE, priority: c_int) -> BOOL --- GetExitCodeThread :: proc(thread: HANDLE, exit_code: ^DWORD) -> BOOL --- TerminateThread :: proc(thread: HANDLE, exit_code: DWORD) -> BOOL --- + SuspendThread :: proc(hThread: HANDLE) -> DWORD --- + + GetProcessAffinityMask :: proc( + hProcess: HANDLE, + lpProcessAffinityMask: PDWORD_PTR, + lpSystemAffinityMask: PDWORD_PTR, + ) -> BOOL --- + SetProcessAffinityMask :: proc( + hProcess: HANDLE, + dwProcessAffinityMask: DWORD_PTR, + ) -> BOOL --- + SetThreadAffinityMask :: proc( + hThread: HANDLE, + dwThreadAffinityMask: DWORD_PTR, + ) -> DWORD_PTR --- CreateSemaphoreW :: proc(attributes: LPSECURITY_ATTRIBUTES, initial_count, maximum_count: LONG, name: LPCWSTR) -> HANDLE --- ReleaseSemaphore :: proc(semaphore: HANDLE, release_count: LONG, previous_count: ^LONG) -> BOOL --- |