USB-I/O Interface Adapter GPIO-24. Programmer's Reference Manual.


2.1.5. GPIO_CloseDevice()

GPIO_RESULT GPIO_CloseDevice(
      HGPIO  hDevice
);

The GPIO_CloseDevice() function closes the GPIO-24 adapter, specified by its handle.

Parameters:

hDevice

Handle to the device to be closed.

Return values:

GPIO_S_SUCCESS

The device referenced by hDevice handle has been successfully closed.

GPIO_E_HANDLE

Invalid device handle has been provided.

GPIO_E_FAIL

Failed to close device.

GPIO_E_NOT_INITIALIZED

Library has not been initialized.