ReactOS 0.4.15-dev-7654-g6bc40d3
msports.h
Go to the documentation of this file.
1#ifndef _MSPORTS_
2#define _MSPORTS_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
9typedef HCOMDB *PHCOMDB;
10#define HCOMDB_INVALID_HANDLE_VALUE ((HCOMDB)INVALID_HANDLE_VALUE)
11
12/* Limits for ComDBResizeDatabase NewSize */
13#define COMDB_MIN_PORTS_ARBITRATED 256
14#define COMDB_MAX_PORTS_ARBITRATED 4096
15
16/* ReportType flags for ComDBGetCurrentPortUsage */
17#define CDB_REPORT_BITS 0x0
18#define CDB_REPORT_BYTES 0x1
19
20LONG
22ComDBClaimNextFreePort(IN HCOMDB hComDB,
23 OUT LPDWORD ComNumber);
24
25LONG
27ComDBClaimPort(IN HCOMDB hComDB,
28 IN DWORD ComNumber,
29 IN BOOL ForceClaim,
30 OUT PBOOL Forced);
31
32LONG
34ComDBClose(IN HCOMDB hComDB);
35
36LONG
38ComDBGetCurrentPortUsage(IN HCOMDB hComDB,
41 IN DWORD ReportType,
42 OUT LPDWORD MaxPortsReported);
43
44LONG
46ComDBOpen(OUT HCOMDB *phComDB);
47
48LONG
50ComDBReleasePort(IN HCOMDB hComDB,
51 IN DWORD ComNumber);
52
53LONG
55ComDBResizeDatabase(IN HCOMDB hComDB,
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* _MSPORTS_ */
Definition: bufpool.h:45
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
_Must_inspect_result_ _In_ USHORT NewSize
Definition: fltkernel.h:975
#define DECLARE_HANDLE(name)
Definition: mimeole.idl:23
LONG WINAPI ComDBReleasePort(IN HCOMDB hComDB, IN DWORD ComNumber)
Definition: comdb.c:488
LONG WINAPI ComDBGetCurrentPortUsage(IN HCOMDB hComDB, OUT PBYTE Buffer, IN DWORD BufferSize, IN DWORD ReportType, OUT LPDWORD MaxPortsReported)
Definition: comdb.c:264
LONG WINAPI ComDBClose(IN HCOMDB hComDB)
Definition: comdb.c:235
LONG WINAPI ComDBClaimPort(IN HCOMDB hComDB, IN DWORD ComNumber, IN BOOL ForceClaim, OUT PBOOL Forced)
Definition: comdb.c:123
LONG WINAPI ComDBOpen(OUT HCOMDB *phComDB)
Definition: comdb.c:375
HCOMDB * PHCOMDB
Definition: msports.h:9
LONG WINAPI ComDBClaimNextFreePort(IN HCOMDB hComDB, OUT LPDWORD ComNumber)
Definition: comdb.c:24
LONG WINAPI ComDBResizeDatabase(IN HCOMDB hComDB, IN DWORD NewSize)
Definition: comdb.c:584
BYTE * PBYTE
Definition: pedump.c:66
long LONG
Definition: pedump.c:60
uint32_t * LPDWORD
Definition: typedefs.h:59
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254
BOOL * PBOOL
Definition: windef.h:161
#define WINAPI
Definition: msvc.h:6