EncryptWithFingerprintA

Security and Signatures

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to EncryptWithFingerprint and string arguments are interpreted using the current SetAnsiMode code page

Encrypts the selected document using the encryption "fingerprint" obtained from another document using the GetEncryptionFingerprint function. The selected document will be encrypted with the same owner and user passwords as the document the fingerprint was taken from

Syntax

Delphi

Function DLEncryptWithFingerprintA(InstanceID: Integer; Fingerprint: PAnsiChar): Integer;

DLL

int DLEncryptWithFingerprintA(int InstanceID, const char * Fingerprint);

Parameters

FingerprintA fingerprint returned by the GetEncryptionFingerprint function

Return values

0The fingerprint was invalid or the document was already encrypted The document was successfully encrypted using the supplied fingerprint
1