diff options
author | midipix <writeonce@midipix.org> | 2020-06-07 18:40:10 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-06-08 10:40:55 +0000 |
commit | a413881baa6fe317b2e33fc611460a4576bf9d66 (patch) | |
tree | 28e06920b5c39b82f05b0e24010e44935b07b37e /include | |
parent | 5d7f04b12d74098966e9cf47e9ded29ec8b74ceb (diff) | |
download | ntapi-a413881baa6fe317b2e33fc611460a4576bf9d66.tar.bz2 ntapi-a413881baa6fe317b2e33fc611460a4576bf9d66.tar.xz |
string functions: added ntapi_tt_hex_utf8_to_uint{16|32|64|ptr}.
Diffstat (limited to 'include')
-rw-r--r-- | include/ntapi/nt_string.h | 18 | ||||
-rw-r--r-- | include/ntapi/ntapi.h | 7 |
2 files changed, 25 insertions, 0 deletions
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; |