diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-30 09:53:09 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-10-31 10:41:48 +0100 |
commit | abf6962144969a3821063ccb68707c17508747cc (patch) | |
tree | d3b2429428ce07b8661c1a7ef0a4ef4c521ac7e5 /api/adapter.h | |
parent | api: make #ifdef-s more descriptive (diff) | |
download | wintun-abf6962144969a3821063ccb68707c17508747cc.tar.xz wintun-abf6962144969a3821063ccb68707c17508747cc.zip |
api: simplify driver removal
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>
Diffstat (limited to 'api/adapter.h')
-rw-r--r-- | api/adapter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/adapter.h b/api/adapter.h index 7ac67ad..c0e4c53 100644 --- a/api/adapter.h +++ b/api/adapter.h @@ -9,6 +9,7 @@ #include <SetupAPI.h> #define MAX_INSTANCE_ID MAX_PATH /* TODO: Is MAX_PATH always enough? */ +#define WINTUN_HWID L"Wintun" typedef struct _SP_DEVINFO_DATA_LIST { |