IoThreadToProcess function

The IoThreadToProcess routine returns a pointer to the process for the specified thread.

Syntax

PEPROCESS IoThreadToProcess(
  PETHREAD Thread
);

Parameters

Thread

Thread whose process is to be returned.

Return Value

IoThreadToProcess returns a pointer to the thread's process.

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

Requirements

   
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "<= DISPATCH_LEVEL"

See Also

IoGetCurrentProcess

PsGetCurrentProcess

PsGetCurrentThread