diff options
author | Simon Rozman <simon@rozman.si> | 2021-02-02 13:12:45 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2021-02-16 04:19:21 +0100 |
commit | bc5cde89160e706789ec9cdadd06be8127d086f9 (patch) | |
tree | 0d19fb46411441437ebd9fdab35489b6088dc368 /api/ntdll.h | |
parent | api: tighten function parameter code analysis annotations (diff) | |
download | wintun-0.10.2.tar.xz wintun-0.10.2.zip |
api: upgrade logging0.10.2
Log runtime information to quickly check whether the values are sane
when analyzing error logs sent in by users.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/ntdll.h')
-rw-r--r-- | api/ntdll.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/api/ntdll.h b/api/ntdll.h index e78a8b2..93b32a6 100644 --- a/api/ntdll.h +++ b/api/ntdll.h @@ -32,6 +32,12 @@ typedef struct _RTL_PROCESS_MODULES RTL_PROCESS_MODULE_INFORMATION Modules[1]; } RTL_PROCESS_MODULES, *PRTL_PROCESS_MODULES; +typedef struct _KEY_NAME_INFORMATION +{ + ULONG NameLength; + WCHAR Name[1]; +} KEY_NAME_INFORMATION, *PKEY_NAME_INFORMATION; + #define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L) // TODO: #include <ntstatus.h> instead of this #define STATUS_PNP_DEVICE_CONFIGURATION_PENDING ((NTSTATUS)0xC0000495L) @@ -46,3 +52,12 @@ typedef struct _RTL_PROCESS_MODULES EXTERN_C DECLSPEC_IMPORT VOID NTAPI RtlGetNtVersionNumbers(_Out_opt_ DWORD *MajorVersion, _Out_opt_ DWORD *MinorVersion, _Out_opt_ DWORD *BuildNumber); + +EXTERN_C +DECLSPEC_IMPORT DWORD NTAPI +NtQueryKey( + _In_ HANDLE KeyHandle, + _In_ int KeyInformationClass, + _Out_bytecap_post_bytecount_(Length, *ResultLength) PVOID KeyInformation, + _In_ ULONG Length, + _Out_ PULONG ResultLength); |