• What DLL is processthreadsapi/GetCurrentProcessId located in?

    From T@21:1/5 to All on Fri Nov 18 01:46:58 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Apd@21:1/5 to All on Fri Nov 18 11:57:20 2022
    "T" wrote:
    I am trying to make from Raku a call to

    GetCurrentProcessId function (processthreadsapi.h)

    That's the C header file containing its definition.

    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

    What dll is GetCurrentProcessId located in?

    kernel32.dll - it says so in the MS docs above.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to Apd on Fri Nov 18 04:00:44 2022
    On 11/18/22 03:57, Apd wrote:
    "T" wrote:
    I am trying to make from Raku a call to

    GetCurrentProcessId function (processthreadsapi.h)

    That's the C header file containing its definition.

    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

    What dll is GetCurrentProcessId located in?

    kernel32.dll

    That was it. Thank you!

    - it says so in the MS docs above.




    Way at the boot under teh "Requirement" section. Grrrr...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to R.Wieser on Fri Nov 18 03:59:38 2022
    On 11/18/22 03:39, R.Wieser wrote:
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Fri Nov 18 12:39:45 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Fri Nov 18 13:29:03 2022
    T,

    The did the trick. Thank you!

    You're welcome.

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)