Overview

Obtains the device name string of a Commander core HID device by its index number within the detected number of devices. The first detected device is indexed as 0, the second as 1, and so on.  Will return 1 if successful, 0 if unsuccessful.

Argument

int number                Specify the index number of the device to get name for.

char* name                Device name

The device name will be "CMD-4CR-xx" where xx is the Identification Number (ID) of the device.

Reply

Int type

0                Send Receive failed

1                Send Receive success

Other (-value)        Host communication failed (3.1.2.7  Communication Error Codes)

Example

  1. VC

int result;                                        //  Function result

char devName[16];                                //  Device name

result = GetCommanderHIDName(0, devName);        //  Obtain the device name

  1. VB

Public devName As New String(“”, 15)                ‘  Device name 

Dim result as Integer                                ‘  Function result

result = GetCommanderHIDName(0, devName);        ‘  Obtain the device name


< Previous SubSection | Topic Home | Home | Next SubSection >