abf6962144
When we install the Wintun driver to the store, we get exact oem<nn>.inf filename of the driver in the store we just installed. Since the installation should be only temporarily, we should uninstall only the driver we installed. This also eliminates the need for iterating driver store speeding up things. The code we removed was inherited from the installer.dll, where it made perfect sense to remove all installed Wintun drivers in the update process. Suggested-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Simon Rozman <simon@rozman.si>
34 lines
635 B
C
34 lines
635 B
C
/* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* Copyright (C) 2018-2020 WireGuard LLC. All Rights Reserved.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "adapter.h"
|
|
#include "atomic.h"
|
|
#include "api.h"
|
|
#include "logger.h"
|
|
#include "namespace.h"
|
|
#include "nci.h"
|
|
#include "registry.h"
|
|
#include "resource.h"
|
|
#include "wintun.h"
|
|
|
|
#include <bcrypt.h>
|
|
#include <cfgmgr32.h>
|
|
#include <devguid.h>
|
|
#include <iphlpapi.h>
|
|
#include <locale.h>
|
|
#include <ndisguid.h>
|
|
#include <newdev.h>
|
|
#include <NTSecAPI.h>
|
|
#include <objbase.h>
|
|
#include <Psapi.h>
|
|
#include <sddl.h>
|
|
#include <SetupAPI.h>
|
|
#include <Shlwapi.h>
|
|
#include <string.h>
|
|
#include <TlHelp32.h>
|
|
#include <wchar.h>
|