aboutsummaryrefslogtreecommitdiffstats
path: root/api/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/driver.h')
-rw-r--r--api/driver.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/api/driver.h b/api/driver.h
new file mode 100644
index 0000000..ab9a922
--- /dev/null
+++ b/api/driver.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2018-2020 WireGuard LLC. All Rights Reserved.
+ */
+
+#pragma once
+
+#include "api.h"
+#include <Windows.h>
+#include <SetupAPI.h>
+
+_Return_type_success_(return != NULL) SP_DRVINFO_DETAIL_DATA_W *DriverGetDrvInfoDetail(
+ _In_ HDEVINFO DevInfo,
+ _In_opt_ SP_DEVINFO_DATA *DevInfoData,
+ _In_ SP_DRVINFO_DATA_W *DrvInfoData);
+
+BOOL
+DriverIsWintunAdapter(_In_ HDEVINFO DevInfo, _In_opt_ SP_DEVINFO_DATA *DevInfoData);
+
+_Return_type_success_(return != INVALID_HANDLE_VALUE) HANDLE
+ DriverGetAdapterDeviceObject(_In_opt_z_ const WCHAR *InstanceId);