TwclComDatabase.ReleasePort(Cardinal) Method
Releases a COM port number in the COM port database.
public function ReleasePort(const Port: Cardinal): Integer;
Parameters
- Port
- Type: Cardinal
Specifies the COM port number to release. This must be a port number returned by the
ClaimPort
method.
Return Value
Type: Integer
If the function succeed the return value is wclErrors.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.