-
Notifications
You must be signed in to change notification settings - Fork 466
/
config.h
69 lines (54 loc) · 1.8 KB
/
config.h
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
63
64
65
66
67
68
69
/* config.h. Manual config for MSVC. */
#ifndef _MSC_VER
#warn "msvc/config.h shouldn't be included for your development environment."
#error "Please make sure the msvc/ directory is removed from your build path."
#endif
#if defined(_PREFAST_)
/* Disable "Banned API Usage:" errors when using WDK's OACR/Prefast */
#pragma warning(disable:28719)
#endif
#if defined(_MSC_VER)
// Disable some VS2012 Code Analysis warnings
#pragma warning(disable:6258) // We'll use TerminateThread() regardless
#pragma warning(disable:6387)
#endif
/*
* Embed WinUSB driver files from the following WDK location.
* If needed, you can obtain the WDK redistributable components from:
* https://go.microsoft.com/fwlink/p/?LinkID=253170
* NB: You must also make sure the WDF_VER, COINSTALLER_DIR and X64_DIR
* match your WinUSB redist directories.
*/
#ifndef WDK_DIR
#define WDK_DIR "C:/Program Files (x86)/Windows Kits/8.0"
#endif
/* WDK WDF coinstaller version */
#define WDF_VER 1011
/* CoInstaller subdirectory for WinUSB redist files ("winusb" or "wdf") */
#define COINSTALLER_DIR "wdf"
/* 64bit subdirectory for WinUSB redist files ("x64" or "amd64") */
#define X64_DIR "x64"
/* embed libusb0 driver files from the following location */
#ifndef LIBUSB0_DIR
#define LIBUSB0_DIR "D:/libusb-win32"
#endif
/* embed libusbK driver files from the following location */
#ifndef LIBUSBK_DIR
#define LIBUSBK_DIR "D:/libusbK/bin"
#endif
/* embed user defined driver files from the following location */
#ifndef USER_DIR
// #define USER_DIR "C:/signed-driver"
#endif
/* 32 bit support */
#define OPT_M32
/* 64 bit support */
#define OPT_M64
/* ARM64 support */
#define OPT_ARM
/* Debug message logging */
//#define ENABLE_DEBUG_LOGGING
/* Debug message logging (toggable) */
#define INCLUDE_DEBUG_LOGGING
/* Message logging */
#define ENABLE_LOGGING 1