diff options
author | Sergei Mileshin <msvsysproger@gmail.com> | 2019-06-17 05:05:45 +0300 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-06-20 11:53:08 +0200 |
commit | a530bb1b8472b860f2d3e5370b262270f55eb326 (patch) | |
tree | 3cdf62e5c78d5cf709f0938dad973ebbad825ec0 /undocumented.h | |
parent | Revise buffer size calculation to work across 32/64-bit boundary (diff) | |
download | wintun-a530bb1b8472b860f2d3e5370b262270f55eb326.tar.xz wintun-a530bb1b8472b860f2d3e5370b262270f55eb326.zip |
Set deny-all DACL instead of removing symlink on halting
Deleting symbolic link on device removal only still makes it possible to
open it from the real path.
Setting the deny-all DACL instead is a more reliable way of preventing
clients reopening the device when it is being removed.
Signed-off-by: Sergei Mileshin <msvsysproger@gmail.com>
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'undocumented.h')
-rw-r--r-- | undocumented.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/undocumented.h b/undocumented.h index 7f7d225..112be0d 100644 --- a/undocumented.h +++ b/undocumented.h @@ -29,3 +29,5 @@ typedef struct _SYSTEM_HANDLE_INFORMATION_EX } SYSTEM_HANDLE_INFORMATION_EX, *PSYSTEM_HANDLE_INFORMATION_EX; extern NTSTATUS ZwQuerySystemInformation(SYSTEM_INFORMATION_CLASS SystemInformationClass, PVOID SystemInformation, ULONG SystemInformationLength, ULONG *ReturnLength); + +extern POBJECT_TYPE *IoDeviceObjectType; |