ComDBClose function (msports.h)
ComDBClose closes a handle to the COM port database.
Syntax
LONG ComDBClose(
[in] HCOMDB HComDB
);
Parameters
[in] HComDB
Handle to the COM port database that was returned by ComDBOpen.
Return value
ComDBClose returns one of the following status values.
Return code | Description |
---|---|
|
The COM port database was closed. |
|
The specified COM port database handle is not valid. |
Remarks
To open the COM port database, call ComDBOpen.
ComDBOpen is called from user mode.
For more information, see Opening and Closing the COM Port Database.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | msports.h (include Msports.h) |
Library | Msports.lib |
DLL | Msports.dll |