3.1.7 CloseCommander
Description
Closes a previously opened Commander core device. The device cannot be used for communication once this function is called. Returns 1 if successful, 0 if unsuccessful.
Recommended: Close all devices when you end the program.
Argument
pHandle
Type: CommanderDeviceHandle*
Pointer to a device‑handle variable.
Receives the opened device handle if the function succeeds.
Return Value
Type: Int
|
Value |
Meaning |
|
0 |
Failure |
|
1 |
Success |
|
Other (negative) |
Host communication failed (see Communication Error Codes) |
Examples
- Python
|
api = DLLInterface() # Close Commander return = self.dll.CloseCommander(handle) if return: print(f"Device is Closed") |
V 1.0 Function: CloseCommanderHID(HANDLE* pHandle)
REPOSITORY PLACEHOLDER LINK
< Previous | Topic Home | Home | Next >