summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ntapi/nt_string.h6
-rw-r--r--include/ntapi/ntapi.h1
-rw-r--r--src/internal/ntapi_hash_table.h3
3 files changed, 9 insertions, 1 deletions
diff --git a/include/ntapi/nt_string.h b/include/ntapi/nt_string.h
index fd9b312..10a413b 100644
--- a/include/ntapi/nt_string.h
+++ b/include/ntapi/nt_string.h
@@ -15,6 +15,12 @@ typedef int __cdecl ntapi_sprintf(
const char * format,
...);
+typedef int __cdecl ntapi_snprintf(
+ char * buffer,
+ size_t size,
+ const char * format,
+ ...);
+
typedef size_t __cdecl ntapi_strlen(const char * str);
diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h
index 8af844f..0d9f432 100644
--- a/include/ntapi/ntapi.h
+++ b/include/ntapi/ntapi.h
@@ -362,6 +362,7 @@ typedef struct _ntapi_vtbl {
/* nt_string.h */
ntapi_memset * memset;
ntapi_sprintf * sprintf;
+ ntapi_snprintf * snprintf;
ntapi_strlen * strlen;
/* imported symbols: tail */
diff --git a/src/internal/ntapi_hash_table.h b/src/internal/ntapi_hash_table.h
index 0fc43a6..1eacf88 100644
--- a/src/internal/ntapi_hash_table.h
+++ b/src/internal/ntapi_hash_table.h
@@ -39,6 +39,7 @@
{0x1c0197e6, (233)}, /* ZwAllocateUuids */ \
{0x1c7a90a1, (5)}, /* ZwQuerySecurityObject */ \
{0x1cf668c5, (194)}, /* ZwQueryKey */ \
+ {0x21b850be, (250)}, /* _snprintf */ \
{0x2259fc62, (2)}, /* ZwDuplicateObject */ \
{0x24e09c64, (18)}, /* ZwSystemDebugControl */ \
{0x255bf138, (142)}, /* ZwReplyWaitReplyPort */ \
@@ -261,6 +262,6 @@
{0xf425639c, (104)}, /* ZwOpenMutant */ \
{0xfde47817, (94)}, /* ZwSetEvent */ \
-#define __NT_IMPORTED_SYMBOLS_ARRAY_SIZE 250
+#define __NT_IMPORTED_SYMBOLS_ARRAY_SIZE 251
#endif