PsGetThreadProcessId function (ntddk.h)
The PsGetThreadProcessId routine returns the process identifier (process ID) that is associated with a specified thread's process.
Syntax
HANDLE PsGetThreadProcessId(
PETHREAD Thread
);
Parameters
Thread
A pointer to an executive thread object structure.
Return value
The supplied thread's process's process ID.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of Windows. |
Target Platform | Universal |
Header | ntddk.h (include Ntddk.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | Any level |