MCPcopy Create free account
hub / github.com/Compiled-Code/eac-mapper / write_phys

Function write_phys

dependencies/vdm/vdm/vdm.hpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 __forceinline bool write_phys(void* addr, void* buffer, std::uint32_t size)
48 {
49 if (!util::is_valid(reinterpret_cast<std::uintptr_t>(addr)))
50 return false;
51
52 auto packet = data_packet_t{ .in = addr, .size = size, .out = buffer };
53 DeviceIoControl( vdm::drv_handle, 0x22280C, &packet, sizeof( packet ), &packet, sizeof( packet ), nullptr, nullptr );
54 }
55}

Callers 3

mainFunction · 0.85
syscallMethod · 0.85
valid_syscallMethod · 0.85

Calls 1

is_validFunction · 0.85

Tested by

no test coverage detected