some additions to winlean
This commit is contained in:
parent
a11ae9248f
commit
4055fd4376
1 changed files with 9 additions and 1 deletions
|
|
@ -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".}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue