From 23d9540acc907b876ea1278a1113828438832ae9 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 15 Jun 2018 10:58:51 +0000 Subject: string helper api's: added ntapi_tt_dec_utf16_to_uint{16|32|64|ptr}(). --- include/ntapi/nt_string.h | 20 ++++++++++++++++++++ include/ntapi/ntapi.h | 4 ++++ 2 files changed, 24 insertions(+) (limited to 'include') diff --git a/include/ntapi/nt_string.h b/include/ntapi/nt_string.h index b24de3d..f85887d 100644 --- a/include/ntapi/nt_string.h +++ b/include/ntapi/nt_string.h @@ -205,4 +205,24 @@ typedef int32_t __stdcall ntapi_tt_uintptr_to_dec_null_utf8( __in size_t buflen, __out ssize_t * length); +typedef int32_t __stdcall ntapi_tt_dec_utf16_to_uint16( + __in const wchar16_t * wch_arg, + __in const wchar16_t * wch_cap, + __out uint16_t * key); + +typedef int32_t __stdcall ntapi_tt_dec_utf16_to_uint32( + __in const wchar16_t * wch_arg, + __in const wchar16_t * wch_cap, + __out uint32_t * key); + +typedef int32_t __stdcall ntapi_tt_dec_utf16_to_uint64( + __in const wchar16_t * wch_arg, + __in const wchar16_t * wch_cap, + __out uint64_t * key); + +typedef int32_t __stdcall ntapi_tt_dec_utf16_to_uintptr( + __in const wchar16_t * wch_arg, + __in const wchar16_t * wch_cap, + __out uintptr_t * key); + #endif diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h index 2f073aa..a78d8f1 100644 --- a/include/ntapi/ntapi.h +++ b/include/ntapi/ntapi.h @@ -480,6 +480,10 @@ typedef struct _ntapi_vtbl { ntapi_tt_uintptr_to_dec_utf8 * tt_uintptr_to_dec_utf8; ntapi_tt_uintptr_to_dec_null_utf16 * tt_uintptr_to_dec_null_utf16; ntapi_tt_uintptr_to_dec_null_utf8 * tt_uintptr_to_dec_null_utf8; + ntapi_tt_dec_utf16_to_uint16 * tt_dec_utf16_to_uint16; + ntapi_tt_dec_utf16_to_uint32 * tt_dec_utf16_to_uint32; + ntapi_tt_dec_utf16_to_uint64 * tt_dec_utf16_to_uint64; + ntapi_tt_dec_utf16_to_uintptr * tt_dec_utf16_to_uintptr; ntapi_tt_init_unicode_string_from_utf16* tt_init_unicode_string_from_utf16; /* nt_guid.h */ -- cgit v1.2.3