diff --git a/README.md b/README.md index 5192c00..318855d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,19 @@ paging table manipulation from user-mode. operations such as getting and setting # example ```cpp -vdm::vdm_ctx vdm; +vdm::read_phys_t _read_phys = + [&](void* addr, void* buffer, std::size_t size) -> bool +{ + return vdm::read_phys(addr, buffer, size); +}; + +vdm::write_phys_t _write_phys = + [&](void* addr, void* buffer, std::size_t size) -> bool +{ + return vdm::write_phys(addr, buffer, size); +}; + +vdm::vdm_ctx vdm(_read_phys, _write_phys); nasa::mem_ctx my_proc(vdm); const auto ntoskrnl_base =