aboutsummaryrefslogtreecommitdiffstats
path: root/api/api.h
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-10-15 15:34:31 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-30 16:51:00 +0100
commit8272da638e76810c8bafd7e5d1a1217b2026c7da (patch)
tree9b924dc4614a7631b582ca3cc4d0d9a8707730a6 /api/api.h
parentapi: arrange rundll32 a console logger (diff)
downloadwintun-8272da638e76810c8bafd7e5d1a1217b2026c7da.tar.xz
wintun-8272da638e76810c8bafd7e5d1a1217b2026c7da.zip
api: unify security descriptors and disable for _DEBUG
When debugger is attached, CreateDirectory() with SYSTEM-only SID fails with "This security ID may not be assigned as the owner of this object. (Code 0x0000051B)". Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/api.h')
-rw-r--r--api/api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/api.h b/api/api.h
index e3cc696..e0a23fd 100644
--- a/api/api.h
+++ b/api/api.h
@@ -17,6 +17,7 @@
typedef _Return_type_success_(return == ERROR_SUCCESS) DWORD WINTUN_STATUS;
extern HINSTANCE ResourceModule;
+extern SECURITY_ATTRIBUTES *SecurityAttributes;
/**
* Returns the version of the Wintun driver and NDIS system currently loaded.