GPIO_RESULT GPIO_OpenDevice( int nDevice, HGPIO* phDevice );
The GPIO_OpenDevice() function opens the GPIO-24 adapter, specified by its number, and returns its handle.
Parameters:
The number of the device to be opened.
Pointer to a variable to be filled with the device handle.
Return values:
The device was successfully opened and *phDevice contains correct handle.
The device has been already opened; *phDevice contains the same handle as was returned previously.
Invalid argument has been provided (nDevice must be in the range from 0 to number of devices - 1).
Failed to open device.
Library has not been initialized.