Discussion:
What DLL is processthreadsapi/GetCurrentProcessId located in?
(too old to reply)
T
2022-11-18 09:46:58 UTC
Permalink
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
R.Wieser
2022-11-18 11:39:45 UTC
Permalink
T,
Post by T
What dll is GetCurrentProcessId located in?
Its located in Kernel32.dll

Next time when you want to figure it out you could do worse than to search
"learn.microsoft.com" for it (perhaps like this : "site:learn.microsoft.com
GetCurrentProcessId". Works for several search engines, not just Google),
and than, on the returned MS webpage, look at the "Requirements" box at the
bottom. It mostly has a "DLL" entry.

Regards,m
Rudy Wieser
T
2022-11-18 11:59:38 UTC
Permalink
Post by R.Wieser
T,
Post by T
What dll is GetCurrentProcessId located in?
Its located in Kernel32.dll
Next time when you want to figure it out you could do worse than to search
"learn.microsoft.com" for it (perhaps like this : "site:learn.microsoft.com
GetCurrentProcessId". Works for several search engines, not just Google),
and than, on the returned MS webpage, look at the "Requirements" box at the
bottom. It mostly has a "DLL" entry.
Regards,m
Rudy Wieser
Hi Rudy,

The did the trick. Thank you!

And I FINALLY found it at the bottom of the link
I posted in the "requirements section". Grrrrrr


-T
R.Wieser
2022-11-18 12:29:03 UTC
Permalink
T,
Post by T
The did the trick. Thank you!
You're welcome.
Post by T
And I FINALLY found it at the bottom of the link
I posted in the "requirements section". Grrrrrr
:-) That has never happend to me. No sirree. Never ! :-)

Regards,
Rudy Wieser

Apd
2022-11-18 11:57:20 UTC
Permalink
Post by T
I am trying to make from Raku a call to
GetCurrentProcessId function (processthreadsapi.h)
That's the C header file containing its definition.
Post by T
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentprocessid
It can't find "processthreadsapi.dll".
Because it's not a DLL
Post by T
What dll is GetCurrentProcessId located in?
kernel32.dll - it says so in the MS docs above.
T
2022-11-18 12:00:44 UTC
Permalink
Post by Apd
Post by T
I am trying to make from Raku a call to
GetCurrentProcessId function (processthreadsapi.h)
That's the C header file containing its definition.
Post by T
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentprocessid
It can't find "processthreadsapi.dll".
Because it's not a DLL
Post by T
What dll is GetCurrentProcessId located in?
kernel32.dll
That was it. Thank you!
Post by Apd
- it says so in the MS docs above.
Way at the boot under teh "Requirement" section. Grrrr...
Loading...