mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 08:36:16 +00:00
Add process hacker headers
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -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
6
deps/CMakeLists.txt
vendored
@@ -1,5 +1,7 @@
|
||||
set(UNICORN_ARCH "x86" CACHE STRING "")
|
||||
|
||||
add_subdirectory(unicorn)
|
||||
|
||||
##########################################
|
||||
|
||||
add_subdirectory(unicorn)
|
||||
add_subdirectory(phnt)
|
||||
|
||||
|
||||
1
deps/phnt
vendored
Submodule
1
deps/phnt
vendored
Submodule
Submodule deps/phnt added at a564eb1511
@@ -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")
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user