icsneolegacy: implemented icsneoGetLastAPIError()

add-device-sharing
Joe Niksa 2022-11-25 12:18:43 -05:00
parent c9d8a4f0a9
commit c97db0f35f
1 changed files with 7 additions and 2 deletions

View File

@ -638,8 +638,13 @@ int LegacyDLLExport icsneoSetDeviceParameters(void* hObject, char* pParmValue, i
// Error Functions
int LegacyDLLExport icsneoGetLastAPIError(void* hObject, unsigned long* pErrorNumber)
{
// TODO Implement
return false;
if(!icsneoValidateHObject(hObject))
return false;
neoevent_t error;
icsneo_getLastError(&error);
*pErrorNumber = (unsigned long)error.eventNumber;
return true;
}
int LegacyDLLExport icsneoGetErrorMessages(void* hObject, int* pErrorMsgs, int* pNumberOfErrors)