diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-29 12:04:34 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-10-31 10:41:46 +0100 |
commit | 4a575d210a34384787d4936dfb96d6b8cb2ea48c (patch) | |
tree | 0cde3fe255d641812a1af9f741c23312b03bfe48 /api/registry.h | |
parent | api: depretiate WintunIsPacketAvailable() (diff) | |
download | wintun-4a575d210a34384787d4936dfb96d6b8cb2ea48c.tar.xz wintun-4a575d210a34384787d4936dfb96d6b8cb2ea48c.zip |
api: fallback to hard-coded version
Windows 7 doesn't have DriverMajorVersion and DriverMinorVersion
registry values yet.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/registry.h')
-rw-r--r-- | api/registry.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api/registry.h b/api/registry.h index fb7d742..a8e5f5f 100644 --- a/api/registry.h +++ b/api/registry.h @@ -118,11 +118,15 @@ RegistryQueryStringWait(_In_ HKEY Key, _In_opt_z_ const WCHAR *Name, _In_ DWORD * * @param Value Pointer to DWORD to retrieve registry value. * + * @Log Set to TRUE to log all failures; FALSE to skip logging the innermost errors. Skipping innermost + * errors reduces log clutter when we are using RegistryQueryDWORD() from + * RegistryQueryDWORDWait() and some errors are expected to occur. + * * @return ERROR_SUCCESS on success; ERROR_INVALID_DATATYPE when registry value exist but not REG_DWORD type; * ERROR_INVALID_DATA when registry value size is not 4 bytes; Win32 error code otherwise. */ WINTUN_STATUS -RegistryQueryDWORD(_In_ HKEY Key, _In_opt_z_ const WCHAR *Name, _Out_ DWORD *Value); +RegistryQueryDWORD(_In_ HKEY Key, _In_opt_z_ const WCHAR *Name, _Out_ DWORD *Value, _In_ BOOL Log); /** * Reads a 32-bit DWORD value from registry key. It waits for the registry value to become available. |