ComRelease

This function releases exclusive access to a previously acquired communication port. This routine should be called prior to ComClose, otherwise, it will be implicitly called. It is not an error if the application has no ownership declared and this call is made.

ComRelease is only strictly necessary if the port was seized with the exclusive ownership mode specified via a ComAcquire call, but application writers are requested to follow a ComAcquire/ComRelease regimen for application consistency.

Note that since the ComAcquire call does not nest, a single ComRelease will "match" any number of ComAcquire calls. ComRelease does not close the communication port, so the handle remains valid.