Example, Mtmicrsetloglevel, Parameters – MagTek Excella STX99875340 User Manual
Page 55

Section 3. Excella API
45
Example
#define DEVICE_NAME_LEN 128
int i=1;
DWORD dwResult;
HANDEL fileHandle;
char cDeviceName[DEVICE_NAME_LEN]="";
while ((dwResult = MTMICRGetDevice(i,(char*) cDeviceName)) !=
MICR_ST_DEVICE_NOT_FOUND)
{
if (MTMICROpenDevice (cDevicesNames) == MICR_ST_OK)
{
//Get timeout
DWORD timeout;
HANDLE fileHandle;
// Create log file and save the handle in fileHandle
// Pass the handle of the log file
MTMICRSetLogFileHandle (fileHandle);
///close the device
// Close the log file
// Close the device
}
i++;
}
if (MTMICROpenDevice (cDevicesNames) == MICR_ST_OK)
{
// Process documents
//close the device
MTMICRCloseDevice (cDeviceName);
}
i++;
}
MTMICRSETLOGLEVEL
MTMICRSetLogLevel sets the desired level of logging details. There are four levels of details: DLL_INTERNAL,
DLL_EXTERNAL, XML_DATA, IMAGE_DATA. By default, none is set.
VOID MTMICRSetLogLevel (
DWORD
dwDebugLevel
);
Parameters
dwDebugLevel
This value specifies the type of logging details. The value is composed of one or more of the following:
DBGLOG_DLL_INTERNAL
= 0x0001
DBGLOG_DLL_EXTERNAL
= 0x0002
DBGLOG_DLL_XMLDATA
= 0x0004
DBGLOG_DLL_IMAGEDATA
= 0x0010