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-10-13 19:40:52 +02:00
|
|
|
#ifndef __L
|
|
|
|
# define __L(x) L##x
|
|
|
|
#endif
|
|
|
|
#ifndef _L
|
|
|
|
# define _L(x) __L(x)
|
|
|
|
#endif
|
|
|
|
|
2020-07-21 16:43:34 +02:00
|
|
|
typedef _Return_type_success_(return == ERROR_SUCCESS) DWORD WINTUN_STATUS;
|
2020-07-24 08:10:00 +02:00
|
|
|
|
2020-07-29 10:10:42 +02:00
|
|
|
extern HINSTANCE ResourceModule;
|
2020-07-21 16:38:00 +02:00
|
|
|
|
2020-10-15 12:52:01 +02:00
|
|
|
/**
|
|
|
|
* Returns the version of the Wintun driver and NDIS system currently loaded.
|
|
|
|
*
|
|
|
|
* @param DriverVersionMaj Pointer to a DWORD to receive the Wintun driver major version number.
|
|
|
|
*
|
|
|
|
* @param DriverVersionMin Pointer to a DWORD to receive the Wintun driver minor version number.
|
|
|
|
*
|
|
|
|
* @param NdisVersionMaj Pointer to a DWORD to receive the NDIS major version number.
|
|
|
|
*
|
|
|
|
* @param NdisVersionMin Pointer to a DWORD to receive the NDIS minor version number.
|
|
|
|
*
|
|
|
|
* @return ERROR_SUCCESS on success; Win32 error code otherwise.
|
|
|
|
*/
|
2020-07-21 16:43:34 +02:00
|
|
|
WINTUN_STATUS WINAPI
|
2020-07-21 16:38:00 +02:00
|
|
|
WintunGetVersion(
|
|
|
|
_Out_ DWORD *DriverVersionMaj,
|
|
|
|
_Out_ DWORD *DriverVersionMin,
|
|
|
|
_Out_ DWORD *NdisVersionMaj,
|
|
|
|
_Out_ DWORD *NdisVersionMin);
|