AddPublicKeyRecipientFromStoreA

安全和签名

需要 Enterprise 版。在 Delphi、C++Builder 和 Lazarus 代码中,请将库创建为 TPDFlibEnterprise(单元 PDFlibEnterprise);Enterprise 版的 DLL 和 ActiveX 构建原样提供该类。其他版本保留此方法,它返回 0、空字符串或 False,并将 LastErrorCode 设置为 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)

描述

AddPublicKeyRecipientFromStore 的 ANSI 变体

字符串参数按 ANSI 文本接受,其余行为与宽字符串入口点完全相同

语法

DLL

int DLAddPublicKeyRecipientFromStoreA(int InstanceID, const char* StoreName, const char* CertificateName, int UseMachineStore, int Permissions);

返回值

1已添加收件人证书
0存储、证书、权限或文档状态无效

备注

DLL 还导出用于 ANSI 字符串的 DLAddPublicKeyRecipientFromStoreA

另请参阅

SetPublicKeyDecryptionStore、EncryptPublicKey