Example, Mtmicrprocesscheck, Parameters – MagTek Excella STX99875340 User Manual

Page 38

Advertising
background image

Excella Windows API Specifications

28

Example


char szResult [4096];
char szDeviceName[4096];
char Buffer[256];
DWORD dwBufferLength ;
DWORD dwStatus;

szDeviceName = “Excella”; // assuming this device has been opened

dwBufferLength = 4096;

if (MTMICRSendCommand(szDeviceName, "ClearPathEntry", szResult , & dwBufferLength)==
MICR_ST_OK)
{
dwBufferLength = 256;
dwStatus = MTMICRGetValue(szResult, SECTION_COMMAND_STATUS,"ReturnCode",
Buffer,

& dwBufferLength);

if (dwStatus == MICR_ST_OK)
{

dwStatus = atol (Buffer);

if (dwStatus == 0)

prinft ("Clear path done!");

else

.printf ("Clear path failed!");

}

}

MTMICRProcessCheck

MTMICRProcessCheck function sends a scan check request with the given process options to the given device name. When
the device completes the scan request, the result of the scan is returned in the buffer pcDocInfo.

ULONG MTMICRProcessCheck (

char

*pcDevName,

char

*pcProcessOptions,

char

*pcDocInfo,

DWORD

*pdwDocInfoSize

);

Parameters


pcDevName

Pointer to null terminated string containing device name.

pcProcessOptions

Pointer to a buffer containing the options to be used in processing the check. The options are stored in the buffer by using
function

MTMICRSetValue

or function

MTMICRSetIndexValue.

pcDocInfo

Pointer to the buffer containing the information returned from the device. The returned information contains command
status, MICR data, and image information.

pdwDocInfoSize

Size of the buffer pcDocInfo.

Advertising