Share via

What DLL is processthreadsapi/GetCurrentProcessId located in?

Todd Chester 711 Reputation points
2022-11-18T10:06:39.543+00:00

Hi All,

I am trying to make from Raku a call to

GetCurrentProcessId function (processthreadsapi.h)

https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentprocessid

Raku's compiler does not liek

sub GetCurrentProcessId()
is native("processthreadsapi")
is symbol("GetCurrentProcessId")
returns DWORD
{ * };

It can't find "processthreadsapi.dll".

What dll is GetCurrentProcessId located in?

Many thanks,
-T

Windows development | Windows API - Win32

Answer accepted by question author
  1. RLWA32 52,361 Reputation points
    2022-11-18T10:08:47.317+00:00

    The answer to your question is stated right in the documentation for which you posted a link. Look towards the bottom of the page and it will tell you that the function is located in kernel32.dll.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.