1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-09-04 16:07:25 +00:00

Create include file

This commit is contained in:
Maurice Heumann
2022-12-28 09:19:39 +01:00
parent 8b4c277f11
commit 083e67e1d7
11 changed files with 74 additions and 76 deletions

View File

@@ -6,10 +6,6 @@ add_executable(runner #WIN32
${runner_headers}
)
target_precompile_headers(runner PRIVATE
std_include.hpp
)
set_property(TARGET runner APPEND_STRING PROPERTY LINK_FLAGS " /MANIFESTUAC:\"level='requireAdministrator'\"")
target_link_libraries(runner PRIVATE

View File

@@ -1,17 +1,13 @@
#include "std_include.hpp"
#include <iostream>
#include <vector>
#include <conio.h>
#include <set>
#include <optional>
#include <stdexcept>
#include "resource.hpp"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
extern "C" __declspec(dllimport)
int hyperhook_initialize();
#include <hyperhook.h>
extern "C" __declspec(dllimport)
int hyperhook_write(unsigned int process_id, unsigned long long address, const void* data,
unsigned long long size);
bool patch_data(const uint32_t process_id, const uint64_t address, const void* buffer,
const size_t length)

View File

@@ -1 +0,0 @@
#pragma once

View File

@@ -8,7 +8,6 @@
// Generated from the TEXTINCLUDE 2 resource.
//
#include "windows.h"
#include "resource.hpp"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

View File

@@ -1,14 +0,0 @@
#pragma once
#include <string>
#include <vector>
#include <mutex>
#include <filesystem>
#include <functional>
#include <Windows.h>
#include <Shlwapi.h>
#include <ShlObj.h>
#include <Psapi.h>
#pragma comment(lib, "Shlwapi.lib")