diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-14 08:29:01 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:51:00 +0100 |
commit | 84113bd294141742fbc5f10e645e74c395e35217 (patch) | |
tree | 36d3b90ba2391290655600c675575f693dea09a3 /api/resource.h | |
parent | api: unify hardware ID string (diff) | |
download | wintun-84113bd294141742fbc5f10e645e74c395e35217.tar.xz wintun-84113bd294141742fbc5f10e645e74c395e35217.zip |
api: unify and document resource loading
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/resource.h')
-rw-r--r-- | api/resource.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/api/resource.h b/api/resource.h index 3693bbf..2ee2547 100644 --- a/api/resource.h +++ b/api/resource.h @@ -9,7 +9,10 @@ #include <Windows.h> WINTUN_STATUS -CopyResource( +ResourceGetAddress(_In_z_ const WCHAR *ResourceName, _Out_ const VOID **Address, _Out_ DWORD *Size); + +WINTUN_STATUS +ResourceCopyToFile( _In_z_ const WCHAR *DestinationPath, _In_opt_ SECURITY_ATTRIBUTES *SecurityAttributes, _In_z_ const WCHAR *ResourceName); |