| 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 | } |
no test coverage detected