libfilezilla
windows.hpp
1 #ifndef LIBFILEZILLA_GLUE_WINDOWS_HEADER
2 #define LIBFILEZILLA_GLUE_WINDOWS_HEADER
3 
4 #include "../private/defs.hpp"
5 
6 #ifndef FZ_WINDOWS
7 #error "You included a file you should not include"
8 #endif
9 
10 #ifndef WIN32_LEAN_AND_MEAN
11 #define WIN32_LEAN_AND_MEAN
12 #endif
13 
14 // Don't let Windows headers #define min/max, clashes with std::min/max
15 #ifndef NOMINMAX
16 #define NOMINMAX
17 #endif
18 
19 // IE 9 or higher
20 #ifndef _WIN32_IE
21 #define _WIN32_IE 0x0900
22 #elif _WIN32_IE <= 0x0900
23 #undef _WIN32_IE
24 #define _WIN32_IE 0x0900
25 #endif
26 
27 // Windows 7 or higher
28 #ifndef _WIN32_WINNT
29 #define _WIN32_WINNT 0x0601
30 #elif _WIN32_WINNT < 0x0601
31 #undef _WIN32_WINNT
32 #define _WIN32_WINNT 0x0601
33 #endif
34 
35 // Windows 7 or higher
36 #ifndef WINVER
37 #define WINVER 0x0601
38 #elif WINVER < 0x0601
39 #undef WINVER
40 #define WINVER 0x0601
41 #endif
42 
43 #ifndef _UNICODE
44 #define _UNICODE
45 #endif
46 
47 #ifndef UNICODE
48 #define UNICODE
49 #endif
50 
51 #ifndef STRICT
52 #define STRICT 1
53 #endif
54 
55 #include <windows.h>
56 #include <shellapi.h>
57 
58 #endif