GetProcessIdOfThread (kernel32)
Last changed: Polymaker-24.226.223.60

.
Summary
Retrieves the process identifier of the process associated with the specified thread (handle).

C# Signature:

[DllImport("kernel32.dll", SetLastError=true)]
public static extern uint GetProcessIdOfThread(IntPtr handle);

VB Signature:

Declare Function GetProcessIdOfThread Lib "kernel32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

To use with an handle to a thread kernel object. (Possibly obtained by NtQuerySystemInformation with SYSTEM_INFORMATION_CLASS.SystemHandleInformation)

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation