/usr/i686-w64-mingw32/include/ddk/msports.h is in mingw-w64-i686-dev 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | #ifndef _MSPORTS_
#define _MSPORTS_
#ifdef __cplusplus
extern "C" {
#endif
DECLARE_HANDLE(HCOMDB);
typedef HCOMDB *PHCOMDB;
#define HCOMDB_INVALID_HANDLE_VALUE ((HCOMDB)INVALID_HANDLE_VALUE)
/* Limits for ComDBResizeDatabase NewSize */
#define COMDB_MIN_PORTS_ARBITRATED 256
#define COMDB_MAX_PORTS_ARBITRATED 4096
/* ReportType flags for ComDBGetCurrentPortUsage */
#define CDB_REPORT_BITS 0x0
#define CDB_REPORT_BYTES 0x1
LONG
WINAPI
ComDBClaimNextFreePort(IN HCOMDB hComDB,
OUT LPDWORD ComNumber);
LONG
WINAPI
ComDBClaimPort(IN HCOMDB hComDB,
IN DWORD ComNumber,
IN BOOL ForceClaim,
OUT PBOOL Forced);
LONG
WINAPI
ComDBClose(IN HCOMDB hComDB);
LONG
WINAPI
ComDBGetCurrentPortUsage(IN HCOMDB hComDB,
OUT PBYTE Buffer,
IN DWORD BufferSize,
IN DWORD ReportType,
OUT LPDWORD MaxPortsReported);
LONG
WINAPI
ComDBOpen(OUT HCOMDB *phComDB);
LONG
WINAPI
ComDBReleasePort(IN HCOMDB hComDB,
IN DWORD ComNumber);
LONG
WINAPI
ComDBResizeDatabase(IN HCOMDB hComDB,
IN DWORD NewSize);
#ifdef __cplusplus
}
#endif
#endif /* _MSPORTS_ */
|