| 662 | } |
| 663 | |
| 664 | BOOL WINAPI KbMapPhysicalMemory( |
| 665 | IN WdkTypes::PVOID PhysicalAddress, |
| 666 | ULONG Size, |
| 667 | WdkTypes::MEMORY_CACHING_TYPE CachingType, |
| 668 | OUT WdkTypes::PVOID* VirtualAddress |
| 669 | ) { |
| 670 | if (!Size || !VirtualAddress) return FALSE; |
| 671 | KB_MAP_PHYSICAL_MEMORY_IN Input = {}; |
| 672 | KB_MAP_PHYSICAL_MEMORY_OUT Output = {}; |
| 673 | Input.PhysicalAddress = PhysicalAddress; |
| 674 | Input.Size = Size; |
| 675 | Input.CachingType = CachingType; |
| 676 | BOOL Status = KbSendRequest(Ctls::KbMapPhysicalMemory, &Input, sizeof(Input), &Output, sizeof(Output)); |
| 677 | *VirtualAddress = Output.VirtualAddress; |
| 678 | return Status; |
| 679 | } |
| 680 | |
| 681 | BOOL WINAPI KbUnmapPhysicalMemory(IN WdkTypes::PVOID VirtualAddress, ULONG Size) |
| 682 | { |
nothing calls this directly
no test coverage detected