1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-07-11 05:31:56 +00:00
This commit is contained in:
momo5502
2022-03-26 13:50:56 +01:00
parent b56b9e5afa
commit eef4a9a5a2
18 changed files with 225 additions and 63 deletions

View File

@ -1,9 +1,9 @@
file(GLOB runner_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
file(GLOB runner_headers ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
add_executable(runner
main.cpp
driver.cpp
service_handle.cpp
native_handle.cpp
driver_device.cpp
${runner_sources}
${runner_headers}
)
target_precompile_headers(runner

View File

@ -1,3 +1,4 @@
#pragma once
#include "service_handle.hpp"
class driver

View File

@ -30,9 +30,9 @@ bool driver_device::send(const DWORD ioctl_code, const data& input, data& output
const auto success = DeviceIoControl(this->device_,
ioctl_code,
const_cast<uint8_t*>(input.data()),
input.size(),
static_cast<DWORD>(input.size()),
output.data(),
output.size(),
static_cast<DWORD>(output.size()),
&size_returned,
nullptr
) != FALSE;

View File

@ -1,3 +1,4 @@
#pragma once
#include "native_handle.hpp"
class driver_device

View File

@ -1,3 +1,5 @@
#pragma once
class native_handle
{
public:

View File

@ -1,3 +1,5 @@
#pragma once
class service_handle
{
public: