IoThreadToProcess function (ntifs.h)
The IoThreadToProcess routine returns a pointer to the process for the specified thread.
Syntax
PEPROCESS IoThreadToProcess(
[in] PETHREAD Thread
);
Parameters
[in] 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
Requirement | Value |
---|---|
Target Platform | Universal |
Header | ntifs.h (include Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | <= DISPATCH_LEVEL |