4 mtecsdk_logenable, Mtecsdk_logenable, 2 - functions – MagTek EC2000 99875713 User Manual
Page 12

2 - Functions
ExpressCard 2000| Instant Issuance Card Personalization System | Programmer’s Reference (Windows SDK)
Page 12 of 21
);
Parameters:
hFileHandle - File handle. All the API functions will log messages and errors to this log file.
Return Values: None.
Remarks: None.
Example:
#define DEVICE_NAME_LEN 128
int i=1;
DWORD dwResult;
HANDLE fileHandle;
char cDeviceName[DEVICE_NAME_LEN]="";
while ((dwResult = MTECSDK_GetDevice(i,(char*) cDeviceName)) !=
EC_ST_DEVICE_NOT_FOUND)
{
if (MTECSDK_OpenDevice (cDevicesNames) == EC_ST_OK)
{
//Get timeout
DWORD timeout;
HANDLE fileHandle;
// Create log file and save the handle in fileHandle
// Pass the handle of the log file
MTECSDK_SetLogFileHandle (fileHandle);
///close the device
// Close the log file
// Close the device
}
i++;
}
if (MTECSDK_OpenDevice (cDevicesNames) == EC_ST_OK)
{
// Process documents
///close the device
MTECSDK_CloseDevice (cDeviceName);
}
2.4 MTECSDK_LogEnable
This function enables or disables logging. By default, logging is disabled. To enable logging, set a valid
log file handle using MTECSDK_SetLogFileHandle, then call this function with bEnable = TRUE.
void MTECSDK_LogEnable (
BOOL bEnable
);