feature. See also
. The project being documented here (as the example) is the Zig library itself.
crypt32.CERT_STORE
pub const CERT_STORE = struct
File
Code
pub const CERT_STORE = struct {
pub const PROV = enum(usize) {
MSG = 1,
MEMORY = 2,
FILE = 3,
REG = 4,
PKCS7 = 5,
SERIALIZED = 6,
FILENAME_A = 7,
FILENAME_W = 8,
SYSTEM_A = 9,
SYSTEM_W = 10,
COLLECTION = 11,
SYSTEM_REGISTRY_A = 12,
SYSTEM_REGISTRY_W = 13,
PHYSICAL_W = 14,
SMART_CARD_W = 15,
LDAP_W = 16,
PKCS12 = 17,
_,
pub fn fromString(str: LPCSTR) PROV {
return @fromBackingInt(@intCast(@intFromPtr(str)));
}
};
pub const FLAG = packed struct(DWORD) {
NO_CRYPT_RELEASE: bool = false,
SET_LOCALIZED_NAME: bool = false,
DEFER_CLOSE_UNTIL_LAST_FREE: bool = false,
Reserved3: u1 = 0,
DELETE: bool = false,
UNSAFE_PHYSICAL: bool = false,
SHARE_STORE: bool = false,
SHARE_CONTEXT: bool = false,
MANIFOLD: bool = false,
ENUM_ARCHIVED: bool = false,
UPDATE_KEYID: bool = false,
BACKUP_RESTORE: bool = false,
MAXIMUM_ALLOWED: bool = false,
CREATE_NEW: bool = false,
OPEN_EXISTING: bool = false,
READONLY: bool = false,
Reserved16: u16 = 0,
};
pub const ADD = enum(DWORD) {
NEW = 1,
USE_EXISTING = 2,
REPLACE_EXISTING = 3,
ALWAYS = 4,
REPLACE_EXISTING_INHERIT_PROPERTIES = 5,
REWER = 6,
NEWER_INHERIT_PROPERTIES = 7,
_,
};
}