feature. See also
. The project being documented here (as the example) is the Zig library itself.
windows.PS
pub const PS = struct
File
Code
pub const PS = struct {
pub const ATTRIBUTE = extern struct {
Attribute: Type,
Size: SIZE_T,
u: extern union {
Value: ULONG_PTR,
ValuePtr: PVOID,
},
ReturnLength: ?*SIZE_T,
pub const NUM = enum(u16) {
ParentProcess = 0,
DebugObject,
Token,
ClientId,
TebAddress,
ImageName,
ImageInfo,
MemoryReserve,
PriorityClass,
ErrorMode,
StdHandleInfo,
HandleList,
GroupAffinity,
PreferredNode,
IdealProcessor,
UmsThread,
MitigationOptions,
ProtectionLevel,
SecureProcess,
JobList,
ChildProcessPolicy,
AllApplicationPackagesPolicy,
Win32kFilter,
SafeOpenPromptOriginClaim,
BnoIsolation,
DesktopAppPolicy,
Chpe,
MitigationAuditOptions,
MachineType,
ComponentFilter,
EnableOptionalXStateFeatures,
SupportedMachines,
SveVectorLength,
};
pub const Type = enum(ULONG_PTR) {
TEB_ADDRESS = construct(.TebAddress, true, false, false),
_,
pub fn construct(num: NUM, thread: bool, input: bool, additive: bool) ULONG_PTR {
var val: ULONG_PTR = @backingInt(num);
if (thread) val |= 0x10000;
if (input) val |= 0x20000;
if (additive) val |= 0x40000;
return val;
}
};
pub const LIST = extern struct {
TotalLength: SIZE_T,
Attributes: [1]ATTRIBUTE,
};
};
}