aboutsummaryrefslogtreecommitdiffstats
path: root/api/entry.h
blob: 65405b7a556cb7272278aaf05ba4419b3d2e97d0 (plain) (blame)
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
/* SPDX-License-Identifier: GPL-2.0
 *
 * Copyright (C) 2018-2021 WireGuard LLC. All Rights Reserved.
 */

#pragma once

#include <Windows.h>

/* TODO: Replace with is_defined. MSVC has issues with the linux kernel varadic macro trick for this. */
#if defined(_M_IX86) || defined(_M_AMD64) || defined(_M_ARM)
#    define MAYBE_WOW64 1
#else
#    define MAYBE_WOW64 0
#endif
#if defined(_M_AMD64) || defined(_M_ARM64)
#    define ACCEPT_WOW64 1
#else
#    define ACCEPT_WOW64 0
#endif
#ifdef HAVE_WHQL
#    undef HAVE_WHQL
#    define HAVE_WHQL 1
#else
#    define HAVE_WHQL 0
#endif
#pragma warning(disable : 4127) /* conditional expression is constant */

extern HINSTANCE ResourceModule;
extern HANDLE ModuleHeap;
extern SECURITY_ATTRIBUTES SecurityAttributes;