GetDeviceNotaryInfo

Declaration

Delphi

function GetDeviceNotaryInfo(var outLen: Integer): Pointer;

ActiveX

HRESULT GetDeviceNotaryInfo([out, retval] VARIANT* Result);

Description

Function retrieves notary information string from device. The string is not zero-terminated. The NotaryInfoFile is exactly 200byte long, usually the Information are filled with extra spaces to reach the 200 bytes.

Arguments

outLen

Size of notary information data in bytes.

Return value

Pointer to memory block with notary information string. For ActiveX - single-dimensional array.

 

Sample

C#
dynamic notaryInfo = SigDev.GetDeviceNotaryInfo();    //  Read image as BMP
MemoryStream m = new MemoryStream(notaryInfo);

byte[] fromStream = m.ToArray();
String strText = "";

foreach (Byte Zeichen in fromStream)
{
	strText += (Char)Zeichen;
}

MessageBox.Show(strText, Text, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);