blob: 3c1ab60c3a61c9071ab4d681473a2983ec161f95 (
plain)
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
|
#ifndef MAP65_TEST_WINDOWS_H
#define MAP65_TEST_WINDOWS_H
#include <stdint.h>
typedef void *HANDLE;
typedef uint32_t DWORD;
typedef int BOOL;
#define INVALID_HANDLE_VALUE ((HANDLE)(intptr_t)-1)
#define GENERIC_WRITE 0x40000000
#define OPEN_EXISTING 3
#define FILE_ATTRIBUTE_NORMAL 0x80
#define SETRTS 3
#define CLRRTS 4
#define SETDTR 5
#define CLRDTR 6
#define CLRBREAK 9
#define ERROR_ACCESS_DENIED 5
#define ERROR_GEN_FAILURE 31
#define ERROR_NO_SUCH_DEVICE 433
#define ERROR_DEVICE_NOT_CONNECTED 1167
HANDLE CreateFileA(const char *, DWORD, DWORD, void *, DWORD, DWORD, HANDLE);
BOOL EscapeCommFunction(HANDLE, DWORD);
BOOL CloseHandle(HANDLE);
DWORD GetLastError(void);
#endif
|