SetPublicKeyDecryptionStore
安全和签名
描述
设置后续文档加载期间用于搜索匹配收件人私钥的 Windows 证书存储区
语法
Delphi
Function TPDFlib.SetPublicKeyDecryptionStore(Const StoreName: WideString; UseMachineStore: Integer): Integer;
ActiveX
Function PDFlib::SetPublicKeyDecryptionStore(StoreName As String, UseMachineStore As Long) As Long
DLL
int DLSetPublicKeyDecryptionStore(int InstanceID, const wchar_t* StoreName, int UseMachineStore);
参数
| StoreName | Windows 证书存储区名称,例如 MY |
|---|---|
| UseMachineStore | 本地计算机存储使用非零值,当前用户存储使用零 |
返回值
| 1 | 已保留存储选择 |
|---|---|
| 0 | 存储名称为空 |
备注
DLL 还为 ANSI 字符串导出 DLSetPublicKeyDecryptionStoreA
另请参阅
SetPublicKeyDecryptionPFX、ClearPublicKeyDecryptionCredential