2020-10-13 19:40:52 +02:00
|
|
|
/* 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>
|
|
|
|
|
2020-10-13 19:55:41 +02:00
|
|
|
#define WINTUN_HWID L"Wintun"
|
|
|
|
|
2020-10-13 19:40:52 +02:00
|
|
|
_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);
|
2020-10-13 19:42:30 +02:00
|
|
|
|
2020-10-14 09:09:27 +02:00
|
|
|
#if defined(HAVE_EV) || defined(HAVE_WHQL)
|
|
|
|
|
2020-10-14 12:51:15 +02:00
|
|
|
WINTUN_STATUS DriverGetVersion(_Out_ FILETIME *DriverDate, _Out_ DWORDLONG *DriverVersion);
|
|
|
|
|
2020-10-13 19:42:30 +02:00
|
|
|
WINTUN_STATUS DriverInstallOrUpdate(VOID);
|
|
|
|
|
|
|
|
WINTUN_STATUS DriverUninstall(VOID);
|
2020-10-14 09:09:27 +02:00
|
|
|
|
|
|
|
#endif
|