U2C_RESULT U2C_GetSerialNum (
HANDLE hDevice,
long* pSerialNum
);
The U2C_GetSerialNum function retrieves the Serial Number of the current device. This is unique Serial Number. It can be used to identify device when you are using a number of U2C-12 devices simultaneously.
- Parameters:
-
| hDevice | Handle to the U2C-12 device to retrieve the Serial Number from. The device has to be opened first, using U2C_OpenDevice() or U2C_OpenDeviceBySerialNum() function. |
| pSerialNum | Pointer to a long integer variable to be filled with the device Serial Number. |
- Return values:
-
| U2C_SUCCESS | Serial Number was successfully obtained. |
| U2C_HARDWARE_NOT_FOUND | U2C-12 device referenced by hDevice handle was not found. |
|