aboutsummaryrefslogtreecommitdiffstats
path: root/api/resource.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/resource.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/resource.h')
-rw-r--r--api/resource.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/api/resource.h b/api/resource.h
index 5021490..6311f2b 100644
--- a/api/resource.h
+++ b/api/resource.h
@@ -27,14 +27,9 @@ ResourceGetAddress(_In_z_ const WCHAR *ResourceName, _Out_ const VOID **Address,
*
* DestinationPath File path
*
- * SecurityAttributes File security attributes. May be NULL for detault.
- *
* ResourceName Name of the RT_RCDATA resource. Use MAKEINTRESOURCEW to locate resource by ID.
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise.
*/
WINTUN_STATUS
-ResourceCopyToFile(
- _In_z_ const WCHAR *DestinationPath,
- _In_opt_ SECURITY_ATTRIBUTES *SecurityAttributes,
- _In_z_ const WCHAR *ResourceName);
+ResourceCopyToFile(_In_z_ const WCHAR *DestinationPath, _In_z_ const WCHAR *ResourceName);