summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-07-30 21:21:21 +0000
committermidipix <writeonce@midipix.org>2017-07-31 08:43:34 -0400
commitb1f553fc960f01e3884d90e4c7ef901ff32d51f1 (patch)
tree194c4f8110ed78edc9b3bef71971b1f6b162ca5f
parentce6accbc18a68c77e06f43834069565a746a4e78 (diff)
downloadntapi-b1f553fc960f01e3884d90e4c7ef901ff32d51f1.tar.bz2
ntapi-b1f553fc960f01e3884d90e4c7ef901ff32d51f1.tar.xz
string to hex, hex to string: pre-alpha api normalization.
-rw-r--r--include/ntapi/nt_string.h24
-rw-r--r--src/string/ntapi_tt_hex_utf16_to_uintptr.c8
-rw-r--r--src/string/ntapi_tt_uintptr_to_hex_utf16.c10
-rw-r--r--src/string/ntapi_tt_uintptr_to_hex_utf8.c10
4 files changed, 26 insertions, 26 deletions
diff --git a/include/ntapi/nt_string.h b/include/ntapi/nt_string.h
index fb76ed1..4fddf8f 100644
--- a/include/ntapi/nt_string.h
+++ b/include/ntapi/nt_string.h
@@ -117,62 +117,62 @@ typedef void * __cdecl ntapi_tt_generic_memcpy(
__in size_t bytes);
typedef void __fastcall ntapi_tt_uint16_to_hex_utf16(
- __in uint16_t key,
+ __in const uint16_t key,
__out wchar16_t * formatted_key);
typedef void __fastcall ntapi_tt_uint32_to_hex_utf16(
- __in uint32_t key,
+ __in const uint32_t key,
__out wchar16_t * formatted_key);
typedef void __fastcall ntapi_tt_uint64_to_hex_utf16(
- __in uint64_t key,
+ __in const uint64_t key,
__out wchar16_t * formatted_key);
typedef void __fastcall ntapi_tt_uintptr_to_hex_utf16(
- __in uintptr_t key,
+ __in const uintptr_t key,
__out wchar16_t * formatted_key);
typedef int32_t __fastcall ntapi_tt_hex_utf16_to_uint16(
- __in wchar16_t hex_key_utf16[4],
+ __in const wchar16_t hex_key_utf16[4],
__out uint16_t * key);
typedef int32_t __fastcall ntapi_tt_hex_utf16_to_uint32(
- __in wchar16_t hex_key_utf16[8],
+ __in const wchar16_t hex_key_utf16[8],
__out uint32_t * key);
typedef int32_t __fastcall ntapi_tt_hex_utf16_to_uint64(
- __in wchar16_t hex_key_utf16[16],
+ __in const wchar16_t hex_key_utf16[16],
__out uint64_t * key);
typedef int32_t __fastcall ntapi_tt_hex_utf16_to_uintptr(
- __in wchar16_t hex_key_utf16[],
+ __in const wchar16_t hex_key_utf16[],
__out uintptr_t * key);
typedef void __fastcall ntapi_tt_uint16_to_hex_utf8(
- __in uint32_t key,
+ __in const uint32_t key,
__out unsigned char * buffer);
typedef void __fastcall ntapi_tt_uint32_to_hex_utf8(
- __in uint32_t key,
+ __in const uint32_t key,
__out unsigned char * buffer);
typedef void __fastcall ntapi_tt_uint64_to_hex_utf8(
- __in uint64_t key,
+ __in const uint64_t key,
__out unsigned char * buffer);
typedef void __fastcall ntapi_tt_uintptr_to_hex_utf8(
- __in uintptr_t key,
+ __in const uintptr_t key,
__out unsigned char * buffer);
#endif
diff --git a/src/string/ntapi_tt_hex_utf16_to_uintptr.c b/src/string/ntapi_tt_hex_utf16_to_uintptr.c
index 2037057..33478f3 100644
--- a/src/string/ntapi_tt_hex_utf16_to_uintptr.c
+++ b/src/string/ntapi_tt_hex_utf16_to_uintptr.c
@@ -8,7 +8,7 @@
#include <ntapi/nt_status.h>
int32_t __fastcall __ntapi_tt_hex_utf16_to_uint32(
- __in wchar16_t hex_key_utf16[8],
+ __in const wchar16_t hex_key_utf16[8],
__out uint32_t * key)
{
int i;
@@ -62,7 +62,7 @@ int32_t __fastcall __ntapi_tt_hex_utf16_to_uint32(
int32_t __fastcall __ntapi_tt_hex_utf16_to_uint64(
- __in wchar16_t hex_key_utf16[16],
+ __in const wchar16_t hex_key_utf16[16],
__out uint64_t * key)
{
int32_t status;
@@ -91,7 +91,7 @@ int32_t __fastcall __ntapi_tt_hex_utf16_to_uint64(
int32_t __fastcall __ntapi_tt_hex_utf16_to_uintptr(
- __in wchar16_t hex_key_utf16[],
+ __in const wchar16_t hex_key_utf16[],
__out uintptr_t * key)
{
#if (__SIZEOF_POINTER__ == 4)
@@ -103,7 +103,7 @@ int32_t __fastcall __ntapi_tt_hex_utf16_to_uintptr(
int32_t __fastcall __ntapi_tt_hex_utf16_to_uint16(
- __in wchar16_t hex_key_utf16[4],
+ __in const wchar16_t hex_key_utf16[4],
__out uint16_t * key)
{
int32_t ret;
diff --git a/src/string/ntapi_tt_uintptr_to_hex_utf16.c b/src/string/ntapi_tt_uintptr_to_hex_utf16.c
index 129a858..0afe43d 100644
--- a/src/string/ntapi_tt_uintptr_to_hex_utf16.c
+++ b/src/string/ntapi_tt_uintptr_to_hex_utf16.c
@@ -7,7 +7,7 @@
#include <psxtypes/psxtypes.h>
static void __fastcall __ntapi_tt_uint_to_hex_utf16(
- __in uint64_t key,
+ __in const uint64_t key,
__out wchar16_t * buffer,
__in unsigned bits)
{
@@ -37,7 +37,7 @@ static void __fastcall __ntapi_tt_uint_to_hex_utf16(
void __fastcall __ntapi_tt_uint16_to_hex_utf16(
- __in uint32_t key,
+ __in const uint32_t key,
__out wchar16_t * formatted_key)
{
__ntapi_tt_uint_to_hex_utf16(
@@ -48,7 +48,7 @@ void __fastcall __ntapi_tt_uint16_to_hex_utf16(
void __fastcall __ntapi_tt_uint32_to_hex_utf16(
- __in uint32_t key,
+ __in const uint32_t key,
__out wchar16_t * formatted_key)
{
__ntapi_tt_uint_to_hex_utf16(
@@ -59,7 +59,7 @@ void __fastcall __ntapi_tt_uint32_to_hex_utf16(
void __fastcall __ntapi_tt_uint64_to_hex_utf16(
- __in uint64_t key,
+ __in const uint64_t key,
__out wchar16_t * formatted_key)
{
__ntapi_tt_uint_to_hex_utf16(
@@ -70,7 +70,7 @@ void __fastcall __ntapi_tt_uint64_to_hex_utf16(
void __fastcall __ntapi_tt_uintptr_to_hex_utf16(
- __in uintptr_t key,
+ __in const uintptr_t key,
__out wchar16_t * formatted_key)
{
#if (__SIZEOF_POINTER__ == 4)
diff --git a/src/string/ntapi_tt_uintptr_to_hex_utf8.c b/src/string/ntapi_tt_uintptr_to_hex_utf8.c
index 2848916..36e333e 100644
--- a/src/string/ntapi_tt_uintptr_to_hex_utf8.c
+++ b/src/string/ntapi_tt_uintptr_to_hex_utf8.c
@@ -7,7 +7,7 @@
#include <psxtypes/psxtypes.h>
static void __fastcall __ntapi_tt_uint_to_hex_utf8(
- __in uint64_t key,
+ __in const uint64_t key,
__out unsigned char * buffer,
__in unsigned bits)
{
@@ -38,7 +38,7 @@ static void __fastcall __ntapi_tt_uint_to_hex_utf8(
void __fastcall __ntapi_tt_uint16_to_hex_utf8(
- __in uint32_t key,
+ __in const uint32_t key,
__out unsigned char * buffer)
{
__ntapi_tt_uint_to_hex_utf8(key,buffer,16);
@@ -46,7 +46,7 @@ void __fastcall __ntapi_tt_uint16_to_hex_utf8(
void __fastcall __ntapi_tt_uint32_to_hex_utf8(
- __in uint32_t key,
+ __in const uint32_t key,
__out unsigned char * buffer)
{
__ntapi_tt_uint_to_hex_utf8(key,buffer,32);
@@ -54,7 +54,7 @@ void __fastcall __ntapi_tt_uint32_to_hex_utf8(
void __fastcall __ntapi_tt_uint64_to_hex_utf8(
- __in uint64_t key,
+ __in const uint64_t key,
__out unsigned char * buffer)
{
__ntapi_tt_uint_to_hex_utf8(key,buffer,64);
@@ -62,7 +62,7 @@ void __fastcall __ntapi_tt_uint64_to_hex_utf8(
void __fastcall __ntapi_tt_uintptr_to_hex_utf8(
- __in uintptr_t key,
+ __in const uintptr_t key,
__out unsigned char * buffer)
{
#if (__SIZEOF_POINTER__ == 4)