fdaf2def9d93a6009437afde8e2df211eae691f4
[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 LONG
16 WINAPI
17 ComDBClaimPort(IN HCOMDB hComDB,
18 IN DWORD ComNumber,
19 IN BOOL ForceClaim,
20 OUT PBOOL Forced);
21
22 LONG
23 WINAPI
24 ComDBClose(IN HCOMDB hComDB);
25
26 LONG
27 WINAPI
28 ComDBGetCurrentPortUsage(IN HCOMDB hComDB,
29 OUT PBYTE Buffer,
30 IN DWORD BufferSize,
31 IN ULONG ReportType,
32 OUT LPDWORD MaxPortsReported);
33
34 LONG
35 WINAPI
36 ComDBOpen(OUT HCOMDB *phComDB);
37
38 LONG
39 WINAPI
40 ComDBReleasePort(IN HCOMDB hComDB,
41 IN DWORD ComNumber);
42
43 LONG
44 WINAPI
45 ComDBResizeDatabase(IN HCOMDB hComDB,
46 IN DWORD NewSize);
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif /* _MSPORTS_ */