Export (0) Print
Expand All
Expand Minimize

IoGetRequestorProcessId routine

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

Syntax


ULONG IoGetRequestorProcessId(
  _In_  PIRP Irp
);

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.

Requirements

Version

This routine is available on Microsoft Windows 2000 and later.

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

See also

IoGetRequestorProcess

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft