Dynamically calls CreateFileTransactedA.
(name: *mut u8, access: u32, mode: u32, attributes: *const SECURITY_ATTRIBUTES, disposition: u32, flags: u32, template: HANDLE, transaction: HANDLE, version: *const u32, extended: PVOID)
| 457 | /// Dynamically calls CreateFileTransactedA. |
| 458 | /// |
| 459 | pub fn create_file_transacted(name: *mut u8, access: u32, mode: u32, attributes: *const SECURITY_ATTRIBUTES, disposition: u32, flags: u32, template: HANDLE, transaction: HANDLE, version: *const u32, extended: PVOID) -> HANDLE { |
| 460 | |
| 461 | unsafe |
| 462 | { |
| 463 | let ret: Option<HANDLE>; |
| 464 | let func_ptr: data::CreateFileTransactedA; |
| 465 | let kernel32 = get_module_base_address(&lc!("kernel32.dll")); |
| 466 | dynamic_invoke!(kernel32,&lc!("CreateFileTransactedW"),func_ptr,ret,name,access,mode,attributes,disposition,flags,template,transaction,version,extended); |
| 467 | |
| 468 | match ret { |
| 469 | Some(x) => return x, |
| 470 | None => return HANDLE { 0: 0 } , |
| 471 | } |
| 472 | } |
| 473 | } |
| 474 | |
| 475 | /// Dynamically calls MiniDumpWriteDump. |
| 476 | /// |
no test coverage detected