some additions to winlean

This commit is contained in:
Araq 2014-05-06 00:04:36 +02:00
commit 4055fd4376

View file

@ -719,3 +719,11 @@ proc WSASend*(s: TSocketHandle, buf: ptr TWSABuf, bufCount: DWORD,
proc get_osfhandle*(fd:TFileHandle): THandle {. proc get_osfhandle*(fd:TFileHandle): THandle {.
importc: "_get_osfhandle", header:"<io.h>".} importc: "_get_osfhandle", header:"<io.h>".}
proc getSystemTimes*(lpIdleTime, lpKernelTime,
lpUserTime: var TFILETIME): WINBOOL {.stdcall,
dynlib: "kernel32", importc: "GetSystemTimes".}
proc getProcessTimes*(hProcess: THandle; lpCreationTime, lpExitTime,
lpKernelTime, lpUserTime: var TFILETIME): WINBOOL {.stdcall,
dynlib: "kernel32", importc: "GetProcessTimes".}