Section 3 – API DLL
27
MTECSDK_SetLogFileHandle
MTECSDK_SetLogFileHandle
specifies a handle for a log file
.
All messages and errors created by all API functions will be
logged in the log file that has this specified handle. By default, there is no log file
VOID MTECSDK_SetLogFileHandle (
HANDLE hFileHandle
);
Parameters
hFileHandle
This is a handle to a file. All the API functions will log errors and information to this log file.
Return Values
No value is returned from this function.
Remarks
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);
}
i++;
}
Summary of Contents for EXPRESSCARD 1000
Page 6: ......