ComDBClose function

ComDBClose closes a handle to the COM port database.

Syntax


LONG WINAPI ComDBClose(
  _In_ HCOMDB HComDB
);

Parameters

HComDB [in]

Handle to the COM port database that was returned by ComDBOpen.

Return value

ComDBClose returns one of the following status values.

Return codeDescription
ERROR_SUCCESS

The COM port database was closed.

ERROR_INVALID_PARAMETER

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

Target platform

Desktop

Header

Msports.h (include Msports.h)

Library

Msports.lib

DLL

Msports.dll

See also

ComDBOpen

 

 

Send comments about this topic to Microsoft

Show: