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

Function KbWritePhysicalMemory

User-Bridge/API/User-Bridge.cpp:733–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731 }
732
733 BOOL WINAPI KbWritePhysicalMemory(
734 WdkTypes::PVOID64 PhysicalAddress,
735 IN PVOID Buffer,
736 ULONG Size,
737 WdkTypes::MEMORY_CACHING_TYPE CachingType
738 ) {
739 if (!Buffer || !Size) return FALSE;
740 KB_READ_WRITE_PHYSICAL_MEMORY_IN Input = {};
741 Input.PhysicalAddress = PhysicalAddress;
742 Input.Buffer = reinterpret_cast<WdkTypes::PVOID>(Buffer);
743 Input.Size = Size;
744 Input.CachingType = CachingType;
745 return KbSendRequest(Ctls::KbWritePhysicalMemory, &Input, sizeof(Input));
746 }
747
748 BOOL WINAPI KbReadDmiMemory(OUT UCHAR DmiMemory[DmiSize], ULONG BufferSize)
749 {

Callers 1

WriteMethod · 0.70

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected