aboutsummaryrefslogtreecommitdiffstats
path: root/api/entry.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-10-31 11:55:26 +0100
committerSimon Rozman <simon@rozman.si>2020-10-31 19:11:51 +0100
commit937eb447278c2bc1b30852905c7740bcdedb534d (patch)
treebec9edcff4b45ae2a076f7cb218d1f98caa36da1 /api/entry.h
parentapi: simplify build settings (diff)
downloadwintun-937eb447278c2bc1b30852905c7740bcdedb534d.tar.xz
wintun-937eb447278c2bc1b30852905c7740bcdedb534d.zip
api: get rid of pch and make headers sane
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/entry.h')
-rw-r--r--api/entry.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/api/entry.h b/api/entry.h
new file mode 100644
index 0000000..0e0e3a6
--- /dev/null
+++ b/api/entry.h
@@ -0,0 +1,26 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2018-2020 WireGuard LLC. All Rights Reserved.
+ */
+
+#pragma once
+
+#include <Windows.h>
+
+#ifndef __L
+# define __L(x) L##x
+#endif
+#ifndef _L
+# define _L(x) __L(x)
+#endif
+
+#if defined(_M_IX86) || defined(_M_ARM)
+#define MAYBE_WOW64
+#endif
+#if defined(_M_AMD64) || defined(_M_ARM64) || defined(_DEBUG)
+#define ACCEPT_WOW64
+#endif
+
+extern HINSTANCE ResourceModule;
+extern HANDLE ModuleHeap;
+extern SECURITY_ATTRIBUTES SecurityAttributes;