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

Function KbGetVirtualForPhysical

User-Bridge/API/User-Bridge.cpp:705–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703 }
704
705 BOOL WINAPI KbGetVirtualForPhysical(
706 IN WdkTypes::PVOID PhysicalAddress,
707 OUT WdkTypes::PVOID* VirtualAddress
708 ) {
709 if (!VirtualAddress) return FALSE;
710 KB_GET_VIRTUAL_FOR_PHYSICAL_IN Input = {};
711 KB_GET_VIRTUAL_FOR_PHYSICAL_OUT Output = {};
712 Input.PhysicalAddress = PhysicalAddress;
713 BOOL Status = KbSendRequest(Ctls::KbGetVirtualForPhysical, &Input, sizeof(Input), &Output, sizeof(Output));
714 *VirtualAddress = Output.VirtualAddress;
715 return Status;
716 }
717
718 BOOL WINAPI KbReadPhysicalMemory(
719 WdkTypes::PVOID64 PhysicalAddress,

Callers 1

GetVirtualForPhysicalMethod · 0.70

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected