icsneolegacy: implemented icsneoGetLastAPIError()
parent
c9d8a4f0a9
commit
c97db0f35f
|
|
@ -638,8 +638,13 @@ int LegacyDLLExport icsneoSetDeviceParameters(void* hObject, char* pParmValue, i
|
||||||
// Error Functions
|
// Error Functions
|
||||||
int LegacyDLLExport icsneoGetLastAPIError(void* hObject, unsigned long* pErrorNumber)
|
int LegacyDLLExport icsneoGetLastAPIError(void* hObject, unsigned long* pErrorNumber)
|
||||||
{
|
{
|
||||||
// TODO Implement
|
if(!icsneoValidateHObject(hObject))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
neoevent_t error;
|
||||||
|
icsneo_getLastError(&error);
|
||||||
|
*pErrorNumber = (unsigned long)error.eventNumber;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int LegacyDLLExport icsneoGetErrorMessages(void* hObject, int* pErrorMsgs, int* pNumberOfErrors)
|
int LegacyDLLExport icsneoGetErrorMessages(void* hObject, int* pErrorMsgs, int* pNumberOfErrors)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue