mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
icsneolegacy: implemented icsneoGetLastAPIError()
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user