SetPublicKeyDecryptionStore

Security and signatures

Description

Sets the Windows certificate store searched for a matching recipient private key during subsequent document loads

Syntax

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);

Parameters

StoreNameWindows certificate store name such as MY
UseMachineStoreUse a nonzero value for the local-machine store or zero for the current-user store

Return values

1The store selection was retained
0The store name was empty

Remarks

The DLL also exports DLSetPublicKeyDecryptionStoreA for ANSI strings

See also

SetPublicKeyDecryptionPFX, ClearPublicKeyDecryptionCredential