// ntifs.h
PEPROCESS IoThreadToProcess(
[in] PETHREAD Thread
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoThreadToProcess routine returns a pointer to the process for the specified thread.
Thread [in]Thread whose process is to be returned.
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.