MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / KbReadPhysicalMemory

Function KbReadPhysicalMemory

User-Bridge/API/User-Bridge.cpp:718–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716 }
717
718 BOOL WINAPI KbReadPhysicalMemory(
719 WdkTypes::PVOID64 PhysicalAddress,
720 OUT PVOID Buffer,
721 ULONG Size,
722 WdkTypes::MEMORY_CACHING_TYPE CachingType
723 ) {
724 if (!Buffer || !Size) return FALSE;
725 KB_READ_WRITE_PHYSICAL_MEMORY_IN Input = {};
726 Input.PhysicalAddress = PhysicalAddress;
727 Input.Buffer = reinterpret_cast<WdkTypes::PVOID>(Buffer);
728 Input.Size = Size;
729 Input.CachingType = CachingType;
730 return KbSendRequest(Ctls::KbReadPhysicalMemory, &Input, sizeof(Input));
731 }
732
733 BOOL WINAPI KbWritePhysicalMemory(
734 WdkTypes::PVOID64 PhysicalAddress,

Callers 1

ReadMethod · 0.70

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected