MCPcopy Create free account
hub / github.com/Spuckwaffel/Kernel-Thread-Driver / read_virtual_memory

Function read_virtual_memory

Driver/utilities.h:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101NTSTATUS read_virtual_memory(ULONG pid, PEPROCESS process, PVOID source_address, PVOID target_address, SIZE_T size)
102{
103 SIZE_T bytes = 0;
104
105 if (NT_SUCCESS(MmCopyVirtualMemory(process, source_address, PsGetCurrentProcess(), target_address, size, KernelMode, &bytes)))
106 return STATUS_SUCCESS;
107
108 return STATUS_SUCCESS;
109}
110
111template< typename T >
112T readlocal(uintptr_t address)

Callers 1

readlocalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected