aboutsummaryrefslogtreecommitdiffstats
path: root/api/resource.h
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-10-13 19:42:30 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-30 16:50:59 +0100
commitc324d07ffb6c7dc2a59ad968a6d9322af1a446e2 (patch)
tree36fb32ed73b6ceb1154f99af888cbbb7288ede2f /api/resource.h
parentapi: introduce logging (diff)
downloadwintun-c324d07ffb6c7dc2a59ad968a6d9322af1a446e2.tar.xz
wintun-c324d07ffb6c7dc2a59ad968a6d9322af1a446e2.zip
api: add driver management
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/resource.h')
-rw-r--r--api/resource.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/api/resource.h b/api/resource.h
new file mode 100644
index 0000000..3693bbf
--- /dev/null
+++ b/api/resource.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2018-2020 WireGuard LLC. All Rights Reserved.
+ */
+
+#pragma once
+
+#include "api.h"
+#include <Windows.h>
+
+WINTUN_STATUS
+CopyResource(
+ _In_z_ const WCHAR *DestinationPath,
+ _In_opt_ SECURITY_ATTRIBUTES *SecurityAttributes,
+ _In_z_ const WCHAR *ResourceName);