The IoGetRequestorProcess routine returns a process pointer for the thread that originally requested a given I/O operation.
PEPROCESS IoGetRequestorProcess( _In_ PIRP Irp );
A pointer to the I/O request packet (IRP) for the I/O operation.
IoGetRequestorProcess returns a process pointer for the thread that requested the I/O operation. If the IRP is not associated with any thread, IoGetRequestorProcess returns NULL.
Staring with Windows Vista. IoGetRequestorProcess returns a pointer to the process to which the thread is currently attached. For IRPs queued for file objects, such as for completion port I/O, IoGetRequestorProcess returns a pointer to the issuing process. If no thread is attached, IoGetRequestorProcess returns a pointer to the process that created the thread.
On Windows XP, IoGetRequestorProcess returns a pointer to the process to which the thread is currently attached.
Prior to Windows XP, IoGetRequestorProcess returns a pointer to the process that created the thread.
An IRP is automatically associated with a thread if it is issued by the I/O Manager or obtained by calling IoBuildAsynchronousFsdRequest, IoBuildSynchronousFsdRequest, or IoBuildDeviceIoControlRequest.
For more information about using system threads and managing synchronization within a nonarbitrary thread context, see Driver Threads, Dispatcher Objects, and Resources.
|Windows Driver kit version|
|Minimum KMDF version|
|Minimum UMDF version|
|Header||ntifs.h (include Ntifs.h)|
|DDI compliance rules|