AddPublicKeyRecipientFromStoreA

Security and signatures

Requires the Enterprise edition. In Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged. Other editions keep the method, which returns 0, an empty string or False and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)

Description

ANSI variant of AddPublicKeyRecipientFromStore

Accepts string parameters as ANSI text and otherwise behaves identically to the wide-string entry point

Syntax

DLL

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

Return values

1The recipient certificate was added
0The store, certificate, permissions, or document state was invalid

Remarks

The DLL also exports DLAddPublicKeyRecipientFromStoreA for ANSI strings

See also

SetPublicKeyDecryptionStore, EncryptPublicKey