SetPAdESSignatureTimeStampFieldA

安全與簽章

需要 Enterprise 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibEnterprise(PDFlibEnterprise 單元)建立程式庫;Enterprise DLL 與 ActiveX 組建原樣提供。其他版本保留此方法,方法會傳回 0、空字串或 False,並將 LastErrorCode 設為 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 SetPAdESSignatureTimeStampField 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

指定簽章欄位,其 CMS signatureValue 將接收 RFC 3161 signature-time-stamp 未簽署屬性

語法

Delphi

Function DLSetPAdESSignatureTimeStampFieldA(InstanceID: Integer; STSProcessID: Integer; SignatureFieldName: PAnsiChar): Integer;

DLL

int DLSetPAdESSignatureTimeStampFieldA(int InstanceID, int STSProcessID, const char* SignatureFieldName);

參數

STSProcessID任一 NewPAdESSignatureTimeStampProcessFrom* 函式傳回的值
SignatureFieldName要增強的簽章欄位名稱

傳回值

程序存在時傳回 1;process id 無效時傳回 0

另請參閱

GetPAdESSignatureValueHashHex