IoGetRequestorProcessId - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

ULONG IoGetRequestorProcessId(
  [in] PIRP Irp
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-iogetrequestorprocessid)

IoGetRequestorProcessId function

Description

The IoGetRequestorProcessId routine returns the unique 32-bit process ID for the thread that originally requested a given I/O operation.

Parameters

Irp [in]

A pointer to the I/O request packet (IRP) for the specified I/O operation.

Return value

IoGetRequestorProcessId returns the process ID for the thread that requested the I/O operation. If the IRP is not associated with any thread, IoGetRequestorProcessId returns zero.

Remarks

On Microsoft Windows XP and later, IoGetRequestorProcessId returns the process ID for the process to which the thread is currently attached.

On Microsoft Windows 2000 and earlier, IoGetRequestorProcessId returns the process ID for the process that created the thread.

For more information about using system threads and managing synchronization within a nonarbitrary thread context, see Driver Threads, Dispatcher Objects, and Resources.

See also

IoGetRequestorProcess