From a413881baa6fe317b2e33fc611460a4576bf9d66 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 7 Jun 2020 18:40:10 +0000 Subject: string functions: added ntapi_tt_hex_utf8_to_uint{16|32|64|ptr}. --- include/ntapi/nt_string.h | 18 ++++++++++++++++++ include/ntapi/ntapi.h | 7 +++++++ 2 files changed, 25 insertions(+) (limited to 'include') diff --git a/include/ntapi/nt_string.h b/include/ntapi/nt_string.h index f85887d..6650d60 100644 --- a/include/ntapi/nt_string.h +++ b/include/ntapi/nt_string.h @@ -157,6 +157,24 @@ typedef int32_t __fastcall ntapi_tt_hex_utf16_to_uintptr( __in const wchar16_t hex_key_utf16[], __out uintptr_t * key); +typedef int32_t __fastcall ntapi_tt_hex_utf8_to_uint16( + __in const unsigned char hex_key_utf16[4], + __out uint16_t * key); + + +typedef int32_t __fastcall ntapi_tt_hex_utf8_to_uint32( + __in const unsigned char hex_key_utf16[8], + __out uint32_t * key); + + +typedef int32_t __fastcall ntapi_tt_hex_utf8_to_uint64( + __in const unsigned char hex_key_utf16[16], + __out uint64_t * key); + + +typedef int32_t __fastcall ntapi_tt_hex_utf8_to_uintptr( + __in const unsigned char hex_key_utf16[], + __out uintptr_t * key); typedef void __fastcall ntapi_tt_uint16_to_hex_utf8( __in const uint32_t key, diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h index 63ff63f..71d8ffb 100644 --- a/include/ntapi/ntapi.h +++ b/include/ntapi/ntapi.h @@ -479,10 +479,17 @@ typedef struct _ntapi_vtbl { ntapi_tt_uint32_to_hex_utf16 * tt_uint32_to_hex_utf16; ntapi_tt_uint64_to_hex_utf16 * tt_uint64_to_hex_utf16; ntapi_tt_uintptr_to_hex_utf16 * tt_uintptr_to_hex_utf16; + ntapi_tt_hex_utf16_to_uint16 * tt_hex_utf16_to_uint16; ntapi_tt_hex_utf16_to_uint32 * tt_hex_utf16_to_uint32; ntapi_tt_hex_utf16_to_uint64 * tt_hex_utf16_to_uint64; ntapi_tt_hex_utf16_to_uintptr * tt_hex_utf16_to_uintptr; + + ntapi_tt_hex_utf8_to_uint16 * tt_hex_utf8_to_uint16; + ntapi_tt_hex_utf8_to_uint32 * tt_hex_utf8_to_uint32; + ntapi_tt_hex_utf8_to_uint64 * tt_hex_utf8_to_uint64; + ntapi_tt_hex_utf8_to_uintptr * tt_hex_utf8_to_uintptr; + ntapi_tt_uint16_to_hex_utf8 * tt_uint16_to_hex_utf8; ntapi_tt_uint32_to_hex_utf8 * tt_uint32_to_hex_utf8; ntapi_tt_uint64_to_hex_utf8 * tt_uint64_to_hex_utf8; -- cgit v1.2.3