Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › os › windows › REGSAM › Specific › Enlistment Public Struct Enlistment Doc Source Public Struct std.os.windows.REGSAM.Specific.Enlistment
pub const Enlistment = packed struct (u16 ) Fields QUERY_INFORMATION : bool = false SET_INFORMATION : bool = false RECOVER : bool = false SUBORDINATE_RIGHTS : bool = false SUPERIOR_RIGHTS : bool = false Reserved5 : u11 = 0 Values File os/windows.zig: 3051
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095 pub const Enlistment = packed struct (u16 ) {
QUERY_INFORMATION : bool = false ,
SET_INFORMATION : bool = false ,
RECOVER : bool = false ,
SUBORDINATE_RIGHTS : bool = false ,
SUPERIOR_RIGHTS : bool = false ,
Reserved5 : u11 = 0 ,
pub const GENERIC_READ : ACCESS_MASK = .{
.STANDARD = .{ .RIGHTS = .READ },
.SPECIFIC = .{ .ENLISTMENT = .{
.QUERY_INFORMATION = true ,
} },
};
pub const GENERIC_WRITE : ACCESS_MASK = .{
.STANDARD = .{ .RIGHTS = .WRITE },
.SPECIFIC = .{ .ENLISTMENT = .{
.SET_INFORMATION = true ,
.RECOVER = true ,
.SUBORDINATE_RIGHTS = true ,
.SUPERIOR_RIGHTS = true ,
} },
};
pub const GENERIC_EXECUTE : ACCESS_MASK = .{
.STANDARD = .{ .RIGHTS = .EXECUTE },
.SPECIFIC = .{ .ENLISTMENT = .{
.RECOVER = true ,
.SUBORDINATE_RIGHTS = true ,
.SUPERIOR_RIGHTS = true ,
} },
};
pub const ALL_ACCESS : ACCESS_MASK = .{
.STANDARD = .{ .RIGHTS = .REQUIRED },
.SPECIFIC = .{ .ENLISTMENT = .{
.QUERY_INFORMATION = true ,
.SET_INFORMATION = true ,
.RECOVER = true ,
.SUBORDINATE_RIGHTS = true ,
.SUPERIOR_RIGHTS = true ,
} },
};
}