You are here


GPIO_EV_DEVICE_REMOVED event is sent when a GPIO-24 adapter is disconnected from the PC.

If a device has previously been opened, the application receives notification with a valid device handle. This handle should be closed with the GPIO_CloseDevice() function to release resources allocated for this device.

If the device has not been opened, the application receives HGPIO_DLL_NOTIFICATION instead of device handle.

Byte 0 GPIO_EV_DEVICE_REMOVED Event ID (0x81).
Bytes 1..7 Reserved Reserved

Event is an 8-byte array of the following format:


Event ID (event type). This byte will contain 0x81.

Bytes 1..7: Reserved

These bytes are reserved for future usage.

For convenience GPIO_EV_DEVICE_REMOVED structure is declared in reports.h file.