OpenHID()
Syntax
Result = OpenHID(#HID, VendorId, ProductId [, SerialNumber])Description
Open the specified HID device for read or write operations.
Parameters
#HID The number to identify the HID device. VendorId The vendor ID of the device to open. ProductId The product ID of the device to open. SerialNumber (optional) The serial number of the specific device to open (if multiple devices with same VID/PID exist).
Return value
Returns nonzero if the device was opened successfully and zero if there was an error.
Remarks
This function opens a HID device by its Vendor ID and Product ID. If multiple devices with the same VID/PID exist, specify the SerialNumber to open a specific device.
See Also
OpenHIDPath(), CloseHID()
Supported OS
All