OpenCommanderHID
Overview
Opens a handle to a Commander core HID device by its device name string. Returns 1 if successful, 0 if unsuccessful.
Execute this for restart after disconnecting with the function, CloseCommanderHID.
Argument
HANDLE* pHandle Device handle
char* name Device name string
The device name string is acquired by the function, GetCommanderHIDName
Reply
Int type
0 Send Receive failed
1 Send Receive success
Other (-value) Host communication failed (Communication Error Codes)
Example
- VC
int result; // Function result
HANDLE devHandle; // Device handle
char devName[16]; // Serial number string
result = OpenCommanderHID(devHandle, devName); // Open device, Obtain handle
- VB
Public devHandle As Integer ‘ Device handle
Public devName As New String(“”, 15) ‘ Serial number string
Dim result as Integer ‘ Function result
result = OpenCommanderHID(devHandle, devName); ‘ Open device, Obtain handle
< Previous SubSection | Topic Home | Home | Next SubSection >