Overview

Closes a HANDLE* previously opened on a Commander core HID device. The handle cannot be used for communication once this function is called. Returns 1 if successful, 0 if unsuccessful.

It is recommended that you close all handles when you end the program.

Argument

HANDLE* pHandle        Device handle

The device handle is acquired by the function, OpenCommanderHID

Reply

Int type

0                Send Receive failed

1                Send Receive success

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

Example

  1. VC

int result;                                        //  Function result

HANDLE devHandle;                                //  Device handle

result = CloseCommanderHID (devHandle);        //  Close the handle

  1. VB

Public devHandle As Integer                        ‘  Device handle

Dim result as Integer                                ‘  Function result

result = CloseCommanderHID (devHandle);        ‘  Close the handle


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