Dynamically calls CreateFileMappingW.
(file: HANDLE, attributes: *const SECURITY_ATTRIBUTES, protect: u32, max_size_high: u32, max_size_low: u32, name: *mut u8)
| 511 | /// Dynamically calls CreateFileMappingW. |
| 512 | /// |
| 513 | pub fn create_file_mapping (file: HANDLE, attributes: *const SECURITY_ATTRIBUTES, protect: u32, max_size_high: u32, max_size_low: u32, name: *mut u8) -> HANDLE { |
| 514 | |
| 515 | unsafe |
| 516 | { |
| 517 | let ret: Option<HANDLE>; |
| 518 | let func_ptr: data::CreateFileMapping; |
| 519 | let kernel32 = get_module_base_address(&lc!("kernel32.dll")); |
| 520 | dynamic_invoke!(kernel32,&lc!("CreateFileMappingW"),func_ptr,ret,file,attributes,protect,max_size_high,max_size_low,name); |
| 521 | |
| 522 | match ret { |
| 523 | Some(x) => return x, |
| 524 | None => return HANDLE { 0: 0 } , |
| 525 | } |
| 526 | } |
| 527 | } |
| 528 | |
| 529 | /// Dynamically calls MapViewOfFile. |
| 530 | /// |
no test coverage detected