MCPcopy Create free account
hub / github.com/Kudaes/Dumpy / unmap_view_of_file

Function unmap_view_of_file

dumpy/dinvoke/src/lib.rs:549–563  ·  view source on GitHub ↗

Dynamically calls UnmapViewOfFile.

(base_address: PVOID)

Source from the content-addressed store, hash-verified

547/// Dynamically calls UnmapViewOfFile.
548///
549pub fn unmap_view_of_file (base_address: PVOID) -> bool {
550
551 unsafe
552 {
553 let ret: Option<BOOL>;
554 let func_ptr: data::UnmapViewOfFile;
555 let kernel32 = get_module_base_address(&lc!("kernel32.dll"));
556 dynamic_invoke!(kernel32,&lc!("UnmapViewOfFile"),func_ptr,ret,base_address);
557
558 match ret {
559 Some(x) => return x.as_bool(),
560 None => return false ,
561 }
562 }
563}
564
565/// Dynamically calls RollbackTransaction.
566///

Callers 1

dumpFunction · 0.85

Calls 1

get_module_base_addressFunction · 0.85

Tested by

no test coverage detected