diff options
| author | Franz Höltermann <Francis_the_cat@gmx.de> | 2024-06-14 17:43:09 +0200 |
|---|---|---|
| committer | Franz Höltermann <Francis_the_cat@gmx.de> | 2024-06-14 17:43:09 +0200 |
| commit | c3302615a3f03d2d8556b8a7ba7df01ac6448bff (patch) | |
| tree | 6cdf05bc057ed93a7e66d6a2467b63f048eeecff /core/sys/windows | |
| parent | 3c3f0f90c2c8d063845cf0ecb61a23705749e445 (diff) | |
| parent | cd5fa8523f79ce981e5047dad5b66155f493d169 (diff) | |
Merge branch 'master' of https://github.com/FrancisTheCat/Odin
Diffstat (limited to 'core/sys/windows')
| -rwxr-xr-x[-rw-r--r--] | core/sys/windows/kernel32.odin | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/sys/windows/kernel32.odin b/core/sys/windows/kernel32.odin index 86f6b86f0..7c76381a4 100644..100755 --- a/core/sys/windows/kernel32.odin +++ b/core/sys/windows/kernel32.odin @@ -1156,6 +1156,19 @@ foreign kernel32 { SetCommState :: proc(handle: HANDLE, dcb: ^DCB) -> BOOL --- } +COMMTIMEOUTS :: struct { + ReadIntervalTimeout: DWORD, + ReadTotalTimeoutMultiplier: DWORD, + ReadTotalTimeoutConstant: DWORD, + WriteTotalTimeoutMultiplier: DWORD, + WriteTotalTimeoutConstant: DWORD, +} + +@(default_calling_convention="system") +foreign kernel32 { + GetCommTimeouts :: proc(handle: HANDLE, timeouts: ^COMMTIMEOUTS) -> BOOL --- + SetCommTimeouts :: proc(handle: HANDLE, timeouts: ^COMMTIMEOUTS) -> BOOL --- +} LPFIBER_START_ROUTINE :: #type proc "system" (lpFiberParameter: LPVOID) |