AddPublicKeyRecipientFromStore

אבטחה וחתימות

תיאור

Adds an X.509 certificate from a Windows certificate store as a public-key encryption recipient

תחביר

Delphi

Function TPDFlib.AddPublicKeyRecipientFromStore(Const StoreName, CertificateName: WideString; UseMachineStore, Permissions: Integer): Integer;

ActiveX

Function PDFlib::AddPublicKeyRecipientFromStore(StoreName As String, CertificateName As String, UseMachineStore As Long, Permissions As Long) As Long

DLL

int DLAddPublicKeyRecipientFromStore(int InstanceID, const wchar_t* StoreName, const wchar_t* CertificateName, int UseMachineStore, int Permissions);

פרמטרים

StoreNameשם של מאגר האישורים של Windows, כגון MY
CertificateNameCase-insensitive simple display name, or an empty string to select the first certificate
UseMachineStoreUse a nonzero value for the local-machine store or zero for the current-user store
PermissionsPermission mask returned by EncodePermissions

ערכי החזרה

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

הערות

ה-DLL מייצא גם DLAddPublicKeyRecipientFromStoreA עבור מחרוזות ANSI

ראה גם

SetPublicKeyDecryptionStore, EncryptPublicKey