GetSignProcessByteRange
Security and Signatures
Description
Returns an element of the byte range array of a passthough digital signature
The values should be handled as 32-bit unsigned integers with two values combined to form a 64-bit file position
Syntax
Delphi
Function TPDFlib.GetSignProcessByteRange(SignProcessID, ArrayPosition: Integer): Integer;
ActiveX
Function PDFlib::GetSignProcessByteRange(SignProcessID As Long, ArrayPosition As Long) As Long
DLL
int DLGetSignProcessByteRange(int InstanceID, int SignProcessID, int ArrayPosition);
Parameters
| SignProcessID | A value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions |
|---|---|
| ArrayPosition | 1 = ByteArray[0] low 32-bits 2 = ByteArray[1] low 32-bits 3 = ByteArray[2] low 32-bits 4 = ByteArray[3] low 32-bits 5 = ByteArray[0] high 32-bits 6 = ByteArray[1] high32-bits 7 = ByteArray[2] high 32-bits 8 = ByteArray[3] high 32-bits |
Return values
Returns the requested byte range element: positions 1 to 4 return the four 32-bit unsigned values, positions 5 to 8 the high 32-bit halves of the two 64-bit file positions. Returns 0 for an invalid process, a signature that is not a passthrough signature, or an ArrayPosition outside 1..8.