mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-07-11 05:31:56 +00:00
Progress
This commit is contained in:
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
#pragma once
|
||||
#include "service_handle.hpp"
|
||||
|
||||
class driver
|
||||
|
@ -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;
|
||||
|
@ -1,3 +1,4 @@
|
||||
#pragma once
|
||||
#include "native_handle.hpp"
|
||||
|
||||
class driver_device
|
||||
|
@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
class native_handle
|
||||
{
|
||||
public:
|
||||
|
@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
class service_handle
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user