some additions to winlean
This commit is contained in:
parent
a11ae9248f
commit
4055fd4376
1 changed files with 9 additions and 1 deletions
|
|
@ -718,4 +718,12 @@ proc WSASend*(s: TSocketHandle, buf: ptr TWSABuf, bufCount: DWORD,
|
|||
stdcall, importc: "WSASend", dynlib: "Ws2_32.dll".}
|
||||
|
||||
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".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue