typedef enum ObjectIdPublicKeyFlags {
ObjectIdPublicKeyFlagsNone = 0,
ObjectIdPublicKeyFlagsUseExistingKey = 1,
ObjectIdPublicKeyFlagsGenerateKeyPair = 2,
ObjectIdPublicKeyFlagsExportable = 4,
ObjectIdPublicKeyFlagsUserProtected = 8,
ObjectIdPublicKeyFlagsPersistKeyInCsp = 16,
ObjectIdPublicKeyFlagsInstallSmartCard = 32,
ObjectIdPublicKeyFlagsDeferredCspHandle = 64,
ObjectIdPublicKeyFlagsRequireAdmin = 128,
ObjectIdPublicKeyFlagsArchivable = 256,
ObjectIdPublicKeyFlagsUpdateKey = 512,
ObjectIdPublicKeyFlagsExportableEncrypted = 1024,
ObjectIdPublicKeyFlagsUseExistingKeyForEncryption = 2048,
ObjectIdPublicKeyFlagsCachingCspHandle = 4096
} ObjectIdPublicKeyFlags;
这些枚举值通常用于指定在创建公钥时的不同标志,例如是否使用现有密钥、生成密钥对、是否导出密钥等。具体的用法可能因 Windows 版本而异,因此最好查阅最新的 Microsoft 文档或 Windows SDK 以获取准确的信息。
转载请注明出处:http://www.zyzy.cn/article/detail/24158/Win32 API/Certenroll.h/ObjectIdPublicKeyFlags