10#define HCOMDB_INVALID_HANDLE_VALUE ((HCOMDB)INVALID_HANDLE_VALUE)
13#define COMDB_MIN_PORTS_ARBITRATED 256
14#define COMDB_MAX_PORTS_ARBITRATED 4096
17#define CDB_REPORT_BITS 0x0
18#define CDB_REPORT_BYTES 0x1
_Must_inspect_result_ _In_ USHORT NewSize
#define DECLARE_HANDLE(name)
LONG WINAPI ComDBReleasePort(IN HCOMDB hComDB, IN DWORD ComNumber)
LONG WINAPI ComDBGetCurrentPortUsage(IN HCOMDB hComDB, OUT PBYTE Buffer, IN DWORD BufferSize, IN DWORD ReportType, OUT LPDWORD MaxPortsReported)
LONG WINAPI ComDBClose(IN HCOMDB hComDB)
LONG WINAPI ComDBClaimPort(IN HCOMDB hComDB, IN DWORD ComNumber, IN BOOL ForceClaim, OUT PBOOL Forced)
LONG WINAPI ComDBOpen(OUT HCOMDB *phComDB)
LONG WINAPI ComDBClaimNextFreePort(IN HCOMDB hComDB, OUT LPDWORD ComNumber)
LONG WINAPI ComDBResizeDatabase(IN HCOMDB hComDB, IN DWORD NewSize)
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize