ePass1000 C/C++ API Reference Manual Version 2.0 |
The epas_CreateContext return a context handle for consequent operation with an ePass1000. This function must be invoked first.
EPAS_STATUS EPAS_API epas_CreateContext( EPAS_HANDLE* hContextHandle, // [out] unsigned long ulFlags, // [in] unsigned long ulApiVersion // [in] );
This function must be invoked first.
If the function succeeds, FT_SUCCESS returned.
If the library failed to allocate memory for context creation, FT_NOT_ENOUGH_MEMORY returned.
If the library do not support the assigned ulApiVersion, FT_INVALID_API_VERSION returned.
For a list of all return codes, see Status Return Values.
EPAS_STATUS epsRet; EPAS_HANDLE handle; epsRet = epas_CreateContext(&handle,0,EPAS_API_VERSION); if(FT_SUCCESS != epsRet) return ERROR; . . .