PsGetCurrentProcessId function (ntddk.h)
The PsGetCurrentProcessId routine identifies the current thread's process.
Syntax
HANDLE PsGetCurrentProcessId();
Return value
PsGetCurrentProcessId returns the process ID of the current thread's process.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Available starting with Windows 2000. |
| Target Platform | Universal |
| Header | ntddk.h (include Ntddk.h) |
| Library | NtosKrnl.lib |
| DLL | NtosKrnl.exe |
| IRQL | Any level |
See also
PsSetCreateProcessNotifyRoutine
Feedback
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.
Submit and view feedback for