fixup
This commit is contained in:
parent
b93fbcf09a
commit
e7ab4817e2
1 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,8 @@ proc processID*(p: Process): int {.rtl, extern: "nosp$1".} =
|
||||||
proc processID*(): int =
|
proc processID*(): int =
|
||||||
## return current process ID
|
## return current process ID
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
proc GetCurrentProcessId(): int32 {.stdcall, dynlib: "kernel32",
|
type DWORD = uint32
|
||||||
|
proc GetCurrentProcessId(): DWORD {.stdcall, dynlib: "kernel32",
|
||||||
importc: "GetCurrentProcessId".}
|
importc: "GetCurrentProcessId".}
|
||||||
result = GetCurrentProcessId()
|
result = GetCurrentProcessId()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue