Section 3 – API DLL
Remarks
If the function succeeds EC_ST_OK is returned.
If there is no data returned from device, error EC_ST_PROCESS_DOC_FAILED is returned
If
pcProcessOptions is NULL, error
EC_ST_BAD_DATA is returned
If pcDocInfo is NULL, error EC_ST_BAD_BUFFER is returned
If the size of returned data is larger than the value specified in pdwDocInfoSize, error
EC_ST_NOT_ENOUGH_MEMORY is returned
Error results from bad connection with device can be one of the following:
EC_ST_CONNECT_REQUEST_TIMEDOUT
EC_ST_REQUEST_TIMEDOUT
EC_ST_DEVICE_NOT_RESPONDING
EC_ST_ERR_INTERNET_CONNECT
EC_ST_ERR_HTTP_OPEN_REQUEST
EC_ST_ERR_HTTP_SEND_REQUEST
Example
#define BUFFER_LEN 4096
char docInfo [BUFFER_LEN];
char options [BUFFER_LEN];
char Device[4096] ="";
DWORD docInfoSize;;
// Set up options using function MTECSDK_SetValue
// Use function MTECSDK_GetDevice to get device name for variable “Device”
docInfoSize = BUFFER_LEN;
dwStatus=MTECSDK_ProcessDoc(Device, options, docInfo, &docInfoSize);
// Use MTECSDK_GetValue to parse the docInfo.
17
Содержание EXPRESSCARD 1000
Страница 6: ......