wow64pp 项目使用教程

wow64pp 项目使用教程

wow64ppA modern c++ implementation of windows heavens gate项目地址:https://gitcode.com/gh_mirrors/wo/wow64pp

1. 项目的目录结构及介绍

wow64pp/
├── include/
│   └── wow64pp.hpp
├── test/
├── .gitignore
├── .gitmodules
├── CMakeLists.txt
├── LICENSE
└── README.md
  • include/: 包含项目的主要头文件 wow64pp.hpp,提供了 Heavens Gate 的实现。
  • test/: 包含项目的测试文件。
  • .gitignore: Git 忽略文件配置。
  • .gitmodules: Git 子模块配置。
  • CMakeLists.txt: CMake 构建配置文件。
  • LICENSE: 项目许可证,采用 Apache-2.0 许可证。
  • README.md: 项目说明文档。

2. 项目的启动文件介绍

项目的启动文件是 include/wow64pp.hpp。这个头文件提供了 Heavens Gate 的实现,主要包含以下功能:

  • module_handle: 获取模块句柄,类似于 GetModuleHandle
  • import: 导入函数,类似于 GetProcAddress
  • call_function: 调用函数。

示例代码:

#include "wow64pp.hpp"

// 获取 ntdll.dll 的句柄
auto x64_ntdll_handle = wow64pp::module_handle("ntdll.dll");

// 导入 NtQueryVirtualMemory 函数
auto x64_NtQueryVirtualMemory = wow64pp::import(x64_ntdll_handle, "NtQueryVirtualMemory");

// 调用函数
winapi::MEMORY_BASIC_INFORMATION64 memory_info;
std::uint64_t result_len;
auto ec = wow64pp::call_function(x64_NtQueryVirtualMemory, process_handle, address, 0, &memory_info, sizeof(memory_info), &result_len);

3. 项目的配置文件介绍

  • CMakeLists.txt: 用于配置 CMake 构建系统。通过这个文件,可以配置项目的编译选项、依赖关系等。

示例内容:

cmake_minimum_required(VERSION 3.10)
project(wow64pp)

set(CMAKE_CXX_STANDARD 17)

include_directories(include)

add_executable(wow64pp_test test/main.cpp)

通过这个配置文件,可以生成项目的构建系统,并编译测试文件。


以上是 wow64pp 项目的基本使用教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望这些内容能帮助你更好地理解和使用该项目。

wow64ppA modern c++ implementation of windows heavens gate项目地址:https://gitcode.com/gh_mirrors/wo/wow64pp

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

徐霞千Ruth

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值