GPIO_RESULT GPIO_GetEvent( HGPIO hDevice, GPIO_EVENT* pEvent );
The GPIO_GetEvent() function checks an event queue for an event or response sent by specified GPIO-24 adapter.
During DLL initialization you can choose how the library should notify your application when GPIO-24 adapter sends events or responses.
Parameters:
Handle to the GPIO-24 adapter. If the device handle is specified, an event queue will be checked for an event from the particular device. Use HGPIO_DLL_NOTIFICATION constant to obtain events sent by DLL. Use HGPIO_ALL_DEVICES constant to get the eldest event, sent either by any open device or by DLL.
Pointer to GPIO_EVENT structure to be filled with event details.
Return values:
Function call succeeded.
There are no new events.
Invalid device handle has been provided.
Failed to read event.
Library has not been initialized.