aboutsummaryrefslogtreecommitdiff
path: root/client/src/util/native.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/util/native.h')
-rw-r--r--client/src/util/native.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/util/native.h b/client/src/util/native.h
index b5b0768..aa41b65 100644
--- a/client/src/util/native.h
+++ b/client/src/util/native.h
@@ -157,6 +157,11 @@ namespace native {
uint8_t Flags;
};
+ enum SECTION_INHERIT {
+ ViewShare = 1,
+ ViewUnmap = 2
+ };
+
using NtQuerySystemInformation = NTSTATUS(__stdcall*)(SYSTEM_INFORMATION_CLASS, PVOID, SIZE_T, PULONG);
using NtOpenProcess = NTSTATUS(__stdcall*)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, CLIENT_ID*);
using NtOpenThread = NTSTATUS(__stdcall*)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, CLIENT_ID*);
@@ -169,4 +174,8 @@ namespace native {
using NtWaitForSingleObject = NTSTATUS(__stdcall*)(HANDLE, BOOLEAN, PLARGE_INTEGER);
using NtCreateThreadEx = NTSTATUS(__stdcall*)(PHANDLE, ACCESS_MASK, PVOID, HANDLE, LPTHREAD_START_ROUTINE, PVOID, ULONG, ULONG_PTR, SIZE_T, SIZE_T, PVOID);
+ using NtCreateSection = NTSTATUS(__stdcall*)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PLARGE_INTEGER, ULONG, ULONG, HANDLE);
+ using NtMapViewOfSection = NTSTATUS(__stdcall*)(HANDLE, HANDLE, PVOID *, ULONG_PTR, SIZE_T, PLARGE_INTEGER, PSIZE_T, SECTION_INHERIT, ULONG, ULONG);
+ using NtUnmapViewOfSection = NTSTATUS(__stdcall*)(HANDLE, PVOID);
+
}; // namespace native \ No newline at end of file