ReactOS  0.4.15-dev-489-g75a0787
msports.h
Go to the documentation of this file.
1 #ifndef _MSPORTS_
2 #define _MSPORTS_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 DECLARE_HANDLE(HCOMDB);
9 typedef 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 
20 LONG
21 WINAPI
22 ComDBClaimNextFreePort(IN HCOMDB hComDB,
23  OUT LPDWORD ComNumber);
24 
25 LONG
26 WINAPI
27 ComDBClaimPort(IN HCOMDB hComDB,
28  IN DWORD ComNumber,
29  IN BOOL ForceClaim,
30  OUT PBOOL Forced);
31 
32 LONG
33 WINAPI
34 ComDBClose(IN HCOMDB hComDB);
35 
36 LONG
37 WINAPI
38 ComDBGetCurrentPortUsage(IN HCOMDB hComDB,
41  IN DWORD ReportType,
42  OUT LPDWORD MaxPortsReported);
43 
44 LONG
45 WINAPI
46 ComDBOpen(OUT HCOMDB *phComDB);
47 
48 LONG
49 WINAPI
50 ComDBReleasePort(IN HCOMDB hComDB,
51  IN DWORD ComNumber);
52 
53 LONG
54 WINAPI
55 ComDBResizeDatabase(IN HCOMDB hComDB,
56  IN DWORD NewSize);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* _MSPORTS_ */
#define IN
Definition: typedefs.h:39
LONG WINAPI ComDBClose(IN HCOMDB hComDB)
Definition: comdb.c:235
LONG WINAPI ComDBClaimNextFreePort(IN HCOMDB hComDB, OUT LPDWORD ComNumber)
Definition: comdb.c:24
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
Definition: bufpool.h:45
BOOL * PBOOL
Definition: windef.h:161
LONG WINAPI ComDBClaimPort(IN HCOMDB hComDB, IN DWORD ComNumber, IN BOOL ForceClaim, OUT PBOOL Forced)
Definition: comdb.c:123
#define WINAPI
Definition: msvc.h:6
#define BufferSize
Definition: classpnp.h:419
unsigned long DWORD
Definition: ntddk_ex.h:95
HCOMDB * PHCOMDB
Definition: msports.h:9
DECLARE_HANDLE(HCOMDB)
_Must_inspect_result_ _In_ USHORT NewSize
Definition: fltkernel.h:975
LONG WINAPI ComDBOpen(OUT HCOMDB *phComDB)
Definition: comdb.c:375
#define OUT
Definition: typedefs.h:40
uint32_t * LPDWORD
Definition: typedefs.h:58
LONG WINAPI ComDBReleasePort(IN HCOMDB hComDB, IN DWORD ComNumber)
Definition: comdb.c:488
LONG WINAPI ComDBResizeDatabase(IN HCOMDB hComDB, IN DWORD NewSize)
Definition: comdb.c:584
BYTE * PBYTE
Definition: pedump.c:66
LONG WINAPI ComDBGetCurrentPortUsage(IN HCOMDB hComDB, OUT PBYTE Buffer, IN DWORD BufferSize, IN DWORD ReportType, OUT LPDWORD MaxPortsReported)
Definition: comdb.c:264