ComDBOpen function (msports.h)
ComDBOpen returns a handle to the COM port database.
LONG ComDBOpen( PHCOMDB PHComDB );
Pointer, if the routine succeeds, to a handle to the COM port database. Otherwise, the routine sets *PHComDB to HCOMDB_INVALID_HANDLE_VALUE. PHComDB must be non-NULL.
ComDBOpen returns one of the following status values.
||The COM port database was successfully opened.|
||The routine could not open the database. To get extended error information, call GetLastError.|
To close the COM port database, call ComDBClose and supply the handle that was returned by ComDBOpen.
ComDBOpen is called from user mode.
For more information, see Opening and Closing the COM Port Database.
|Header||msports.h (include Msports.h)|