SetSignProcessKeyset

Security and Signatures

Description

Sets the MS Crypto API keyset value.

Syntax

Delphi

function TPDFlib.SetSignProcessKeyset(SignProcessID, KeysetID: Integer): Integer;

ActiveX

Function PDFlib::SetSignProcessKeyset(SignProcessID As Long, KeysetID As Long) As Long

DLL

int DLSetSignProcessKeyset(int InstanceID, int SignProcessID, int KeysetID);

Parameters

SignProcessIDA value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions.
KeysetID1 = CRYPT_USER_KEYSET (Default) 2 = CRYPT_MACHINE_KEYSET

Return values

0Invalid SignProcessID parameter or KeysetID out of range
1Signature process keyset was set successfully