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

Function create_file_transacted

dumpy/dinvoke/src/lib.rs:459–473  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

457/// Dynamically calls CreateFileTransactedA.
458///
459pub 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///

Callers 1

dumpFunction · 0.85

Calls 1

get_module_base_addressFunction · 0.85

Tested by

no test coverage detected