fix build?
[reactos.git] / reactos / include / ddk / msports.h
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 #define COMDB_MIN_PORTS_ARBITRATED 256
13 #define COMDB_MAX_PORTS_ARBITRATED 4096
14
15 #define CDB_REPORT_BITS 0x0
16 #define CDB_REPORT_BYTES 0x1
17
18 LONG
19 WINAPI
20 ComDBClaimNextFreePort(IN HCOMDB hComDB,
21 OUT LPDWORD ComNumber);
22
23 LONG
24 WINAPI
25 ComDBClaimPort(IN HCOMDB hComDB,
26 IN DWORD ComNumber,
27 IN BOOL ForceClaim,
28 OUT PBOOL Forced);
29
30 LONG
31 WINAPI
32 ComDBClose(IN HCOMDB hComDB);
33
34 LONG
35 WINAPI
36 ComDBGetCurrentPortUsage(IN HCOMDB hComDB,
37 OUT PBYTE Buffer,
38 IN DWORD BufferSize,
39 IN DWORD ReportType,
40 OUT LPDWORD MaxPortsReported);
41
42 LONG
43 WINAPI
44 ComDBOpen(OUT HCOMDB *phComDB);
45
46 LONG
47 WINAPI
48 ComDBReleasePort(IN HCOMDB hComDB,
49 IN DWORD ComNumber);
50
51 LONG
52 WINAPI
53 ComDBResizeDatabase(IN HCOMDB hComDB,
54 IN DWORD NewSize);
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif /* _MSPORTS_ */