feature. See also
. The project being documented here (as the example) is the Zig library itself.
windows.THREAD
pub const THREAD = struct
File
Code
pub const THREAD = struct {
pub const INFOCLASS = enum(c_int) {
BasicInformation = 0,
Times = 1,
Priority = 2,
BasePriority = 3,
AffinityMask = 4,
ImpersonationToken = 5,
DescriptorTableEntry = 6,
EnableAlignmentFaultFixup = 7,
EventPair_Reusable = 8,
QuerySetWin32StartAddress = 9,
ZeroTlsCell = 10,
PerformanceCount = 11,
AmILastThread = 12,
IdealProcessor = 13,
PriorityBoost = 14,
SetTlsArrayAddress = 15,
IsIoPending = 16,
HideFromDebugger = 17,
BreakOnTermination = 18,
SwitchLegacyState = 19,
IsTerminated = 20,
LastSystemCall = 21,
IoPriority = 22,
CycleTime = 23,
PagePriority = 24,
ActualBasePriority = 25,
TebInformation = 26,
CSwitchMon = 27,
CSwitchPmu = 28,
Wow64Context = 29,
GroupInformation = 30,
UmsInformation = 31,
CounterProfiling = 32,
IdealProcessorEx = 33,
CpuAccountingInformation = 34,
SuspendCount = 35,
HeterogeneousCpuPolicy = 36,
ContainerId = 37,
NameInformation = 38,
SelectedCpuSets = 39,
SystemThreadInformation = 40,
ActualGroupAffinity = 41,
DynamicCodePolicyInfo = 42,
SubsystemInformation = 45,
_,
pub const Max: @typeInfo(@This()).@"enum".tag_type = 60;
};
pub const BASIC_INFORMATION = extern struct {
ExitStatus: NTSTATUS,
TebBaseAddress: PVOID,
ClientId: CLIENT_ID,
AffinityMask: KAFFINITY,
Priority: KPRIORITY,
BasePriority: KPRIORITY,
};
pub const CREATE_FLAGS = packed struct(ULONG) {
CREATE_SUSPENDED: bool = false,
SKIP_THREAD_ATTACH: bool = false,
HIDE_FROM_DEBUGGER: bool = false,
LOADER_WORKER: bool = false,
SKIP_LOADER_INIT: bool = false,
BYPASS_PROCESS_FREEZE: bool = false,
Reserved6: u26 = 0,
pub const NONE: CREATE_FLAGS = .{};
};
pub const StackSize = enum(SIZE_T) {
default = 0,
_,
};
}