QLIB-function: QAPIDisconnect


Terminates an existing TCP/IP connection to a QLIB Remote Server.

ULONG QAPIDisconnect(void);


Return value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.

Commands
This function only fails if the QLIB was in local mode. The remote mode can be entered by call the QAPIConnect function. QAPIDisconnect is the only function which is able to switch the QLIB from remote to local mode. Which mode (local or remote) is currently active can be determined by the QAPIConnectionMode function.

 Back to the QLIB overview