| 383 | } |
| 384 | |
| 385 | bool intel_driver::MemCopy(uint64_t destination, uint64_t source, uint64_t size) { |
| 386 | if (!destination || !source || !size) |
| 387 | return 0; |
| 388 | |
| 389 | COPY_MEMORY_BUFFER_INFO copy_memory_buffer = { 0 }; |
| 390 | |
| 391 | copy_memory_buffer.case_number = 0x33; |
| 392 | copy_memory_buffer.source = source; |
| 393 | copy_memory_buffer.destination = destination; |
| 394 | copy_memory_buffer.length = size; |
| 395 | |
| 396 | DWORD bytes_returned = 0; |
| 397 | return DeviceIoControl(hDevice, ioctl1, ©_memory_buffer, sizeof(copy_memory_buffer), nullptr, 0, &bytes_returned, nullptr); |
| 398 | } |
| 399 | |
| 400 | bool intel_driver::SetMemory(uint64_t address, uint32_t value, uint64_t size) { |
| 401 | if (!address || !size) |
nothing calls this directly
no outgoing calls
no test coverage detected