Add process hacker headers

This commit is contained in:
momo5502
2024-08-17 09:43:25 +02:00
parent aa047c6227
commit 654646c97f
6 changed files with 16 additions and 13 deletions

3
.gitmodules vendored
View File

@@ -3,3 +3,6 @@
url = https://github.com/unicorn-engine/unicorn.git
shallow = true
branch = dev
[submodule "deps/phnt"]
path = deps/phnt
url = https://github.com/winsiderss/phnt.git

6
deps/CMakeLists.txt vendored
View File

@@ -1,5 +1,7 @@
set(UNICORN_ARCH "x86" CACHE STRING "")
add_subdirectory(unicorn)
##########################################
add_subdirectory(unicorn)
add_subdirectory(phnt)

1
deps/phnt vendored Submodule

Submodule deps/phnt added at a564eb1511

View File

@@ -12,7 +12,7 @@ momo_assign_source_group(${SRC_FILES})
target_precompile_headers(client PRIVATE std_include.hpp)
target_link_libraries(client PRIVATE unicorn)
target_link_libraries(client PRIVATE unicorn phnt::phnt)
set_target_properties(client PROPERTIES OUTPUT_NAME "bird")

View File

@@ -2,6 +2,7 @@
#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable: 4005)
#pragma warning(disable: 4127)
#pragma warning(disable: 4244)
#pragma warning(disable: 4245)
@@ -27,12 +28,6 @@
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <ShlObj.h>
#include <d3d11.h>
#include <shellscalingapi.h>
#include <winternl.h>
// min and max is required by gdi, therefore NOMINMAX won't work
#ifdef max
#undef max
@@ -69,6 +64,11 @@
#include <unicorn/unicorn.h>
#define NTDDI_WIN11_GE 0
#define PHNT_VERSION PHNT_WIN11
#include <phnt_windows.h>
#include <phnt.h>
#ifdef _WIN32
#pragma warning(pop)
#endif

View File

@@ -19,10 +19,7 @@ inline void ThrowIfUnicornError(const uc_err error_code)
}
}
inline void e(const uc_err error_code)
{
ThrowIfUnicornError(error_code);
}
#define e ThrowIfUnicornError
class unicorn
{