#ifndef _NTPSAPI_H
// Thread information structures
typedef struct _THREAD_BASIC_INFORMATION
{
NTSTATUS ExitStatus;
PTEB TebBaseAddress;
CLIENT_ID ClientId;
KAFFINITY AffinityMask;
KPRIORITY Priority;
KPRIORITY BasePriority;
} THREAD_BASIC_INFORMATION, *PTHREAD_BASIC_INFORMATION;
View code on GitHub
Thread exit status. If thread is not terminated, it has STATUS_PENDING
value. See also Win32 API GetExitCodeThread
.
Address of TEB
structure for specified thread. See also NtCurrentTeb
.
Unique process id and thread id.
Thread affinity mask. There are no Win32 call GetThreadAffinityMask, but there's function SetThreadAffinityMask
that's use AffinityMask
value. See also ThreadAffinityMask
information class.
I'm not sure...
Thread base priority. Used by Kernel32.dll in function GetThreadPriority
. See also ThreadBasePriority
information class.
Structure is used with ThreadBasicInformation
information class in NtQueryInformationThread
call.
NtQueryInformationThread
THREAD_INFORMATION_CLASS