diff options
| author | Matias Fernandez <matiasfmolinari@gmail.com> | 2023-04-23 22:08:12 -0400 |
|---|---|---|
| committer | Matias Fernandez <matiasfmolinari@gmail.com> | 2023-04-23 22:08:12 -0400 |
| commit | 46da53ba151b410efb8f4646008e1ebdcfa6ad40 (patch) | |
| tree | b8357679d49d9b539576ce96db3c9f85721dbb5a | |
| parent | 341ba34773f4d38c3236e613020e741ef4325af2 (diff) | |
Add the waits that support I/O completion routines in kernel32.odin
| -rw-r--r-- | core/sys/windows/kernel32.odin | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/sys/windows/kernel32.odin b/core/sys/windows/kernel32.odin index a6897f164..c7bd7d7b0 100644 --- a/core/sys/windows/kernel32.odin +++ b/core/sys/windows/kernel32.odin @@ -156,6 +156,7 @@ foreign kernel32 { TolerableDelay: ULONG, ) -> BOOL --- WaitForSingleObject :: proc(hHandle: HANDLE, dwMilliseconds: DWORD) -> DWORD --- + WaitForSingleObjectEx :: proc(hHandle: HANDLE, dwMilliseconds: DWORD, bAlertable: BOOL) -> DWORD --- Sleep :: proc(dwMilliseconds: DWORD) --- GetProcessId :: proc(handle: HANDLE) -> DWORD --- CopyFileExW :: proc( @@ -299,6 +300,13 @@ foreign kernel32 { bWaitAll: BOOL, dwMilliseconds: DWORD, ) -> DWORD --- + WaitForMultipleObjectsEx :: proc( + nCount: DWORD, + lpHandles: ^HANDLE, + bWaitAll: BOOL, + dwMilliseconds: DWORD, + bAlertable: BOOL, + ) -> DWORD --- CreateNamedPipeW :: proc( lpName: LPCWSTR, dwOpenMode: DWORD, |