Serial Framework C++ Edition

◆ ReleasePort()

int ReleasePort ( const unsigned long  Port)

Releases a COM port number in the COM port database.

Parameters
PortSpecifies the COM port number to release. This must be a port number returned by the ClaimPort method.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Please note that this method does not destroy any serial device. This just release the serial (COM) device number so any other application and/or driver can now use this number.