PETHREAD
PsGetCurrentThread(
);
PsGetCurrentThread identifies the current thread.
Return Value
PsGetCurrentThread returns a pointer to the thread object representing the currently executing thread.
Callers of this routine must be running at IRQL <= DISPATCH_LEVEL.
See Also