Dynamically calls UnmapViewOfFile.
(base_address: PVOID)
| 547 | /// Dynamically calls UnmapViewOfFile. |
| 548 | /// |
| 549 | pub 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 | /// |
no test coverage detected