2020-07-03 12:26:06 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018-2020 WireGuard LLC. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
2020-11-03 02:09:00 +01:00
|
|
|
/* TODO: Replace with is_defined. MSVC has issues with the linux kernel varadic macro trick for this. */
|
2020-11-05 16:34:00 +01:00
|
|
|
#if defined(_M_IX86) || defined(_M_AMD64) || defined(_M_ARM)
|
2020-11-03 02:09:00 +01:00
|
|
|
# define MAYBE_WOW64 1
|
|
|
|
#else
|
|
|
|
# define MAYBE_WOW64 0
|
2020-10-30 09:33:21 +01:00
|
|
|
#endif
|
2020-11-03 02:09:00 +01:00
|
|
|
#if defined(_M_AMD64) || defined(_M_ARM64)
|
|
|
|
# define ACCEPT_WOW64 1
|
|
|
|
#else
|
|
|
|
# define ACCEPT_WOW64 0
|
2020-10-30 09:33:21 +01:00
|
|
|
#endif
|
2020-11-03 02:09:00 +01:00
|
|
|
#ifdef HAVE_WHQL
|
|
|
|
# undef HAVE_WHQL
|
|
|
|
# define HAVE_WHQL 1
|
|
|
|
#else
|
|
|
|
# define HAVE_WHQL 0
|
|
|
|
#endif
|
|
|
|
#pragma warning(disable : 4127) /* conditional expression is constant */
|
2020-10-30 09:33:21 +01:00
|
|
|
|
2020-07-29 10:10:42 +02:00
|
|
|
extern HINSTANCE ResourceModule;
|
2020-10-24 22:12:47 +02:00
|
|
|
extern HANDLE ModuleHeap;
|
2020-10-30 13:26:36 +01:00
|
|
|
extern SECURITY_ATTRIBUTES SecurityAttributes;
|