mirror of
https://github.com/notscimmy/libcapcom
synced 2026-06-22 07:30:16 +00:00
26 lines
472 B
C++
26 lines
472 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
#include "structs.h"
|
|
|
|
using namespace native::structs;
|
|
|
|
namespace capcom::wrapper
|
|
{
|
|
static const std::string device_name = "\\\\.\\Htsysm72FB";
|
|
static const DWORD ioctl_x64 = 0xAA013044u;
|
|
|
|
class capcom_wrapper
|
|
{
|
|
private:
|
|
HANDLE driver_handle;
|
|
|
|
public:
|
|
capcom_wrapper();
|
|
|
|
void open_driver_handle();
|
|
void close_driver_handle();
|
|
void execute_in_kernel(std::function<void(MmGetSystemRoutineAddress_t)> user_function);
|
|
};
|
|
}
|