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