Fix some Windows API declarations.

This commit is contained in:
cheatfate 2020-09-29 13:34:40 +03:00
parent 7a2b6dbdda
commit 3e4dc8213b
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 2 additions and 2 deletions

View File

@ -109,12 +109,12 @@ when defined(windows):
importc: "DeleteFileW", dynlib: "kernel32", stdcall.}
proc closeHandle(hobj: uint): int32 {.
importc: "CloseHandle", dynlib: "kernel32", stdcall, sideEffect.}
proc writeFile(hFile: uint32, lpBuffer: pointer,
proc writeFile(hFile: uint, lpBuffer: pointer,
nNumberOfBytesToWrite: uint32,
lpNumberOfBytesWritten: var uint32,
lpOverlapped: pointer): int32 {.
importc: "WriteFile", dynlib: "kernel32", stdcall, sideEffect.}
proc readFile(hFile: uint32, lpBuffer: pointer,
proc readFile(hFile: uint, lpBuffer: pointer,
nNumberOfBytesToRead: uint32,
lpNumberOfBytesRead: var uint32,
lpOverlapped: pointer): int32 {.