CompletionKey parameter for functions CreateIoCompletionPort,

GetQueuedCompletionStatus must be 64bit size on amd64 and 32bit size on x86.
This commit is contained in:
cheatfate 2016-04-19 03:04:44 +03:00
commit 2a2a3d6c39
2 changed files with 6 additions and 4 deletions

View file

@ -36,6 +36,8 @@ type
DWORD* = int32
PDWORD* = ptr DWORD
LPINT* = ptr int32
ULONG_PTR* = uint
PULONG_PTR* = ptr uint
HDC* = Handle
HGLRC* = Handle
@ -759,12 +761,12 @@ const
ERROR_NETNAME_DELETED* = 64
proc createIoCompletionPort*(FileHandle: Handle, ExistingCompletionPort: Handle,
CompletionKey: DWORD,
CompletionKey: ULONG_PTR,
NumberOfConcurrentThreads: DWORD): Handle{.stdcall,
dynlib: "kernel32", importc: "CreateIoCompletionPort".}
proc getQueuedCompletionStatus*(CompletionPort: Handle,
lpNumberOfBytesTransferred: PDWORD, lpCompletionKey: PULONG,
lpNumberOfBytesTransferred: PDWORD, lpCompletionKey: PULONG_PTR,
lpOverlapped: ptr POVERLAPPED,
dwMilliseconds: DWORD): WINBOOL{.stdcall,
dynlib: "kernel32", importc: "GetQueuedCompletionStatus".}