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

Function get_last_error

dumpy/dinvoke/src/lib.rs:583–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

581}
582
583pub fn get_last_error() -> u32
584{
585 unsafe
586 {
587 let ret: Option<u32>;
588 let func_ptr: data::GetLastError;
589 let module_base_address = get_module_base_address(&lc!("kernel32.dll"));
590 dynamic_invoke!(module_base_address,&lc!("GetLastError"),func_ptr,ret,);
591
592 match ret {
593 Some(x) => return x,
594 None => return 0xf,
595 }
596 }
597}
598
599/// Dynamically calls SetHandleInformation.
600///

Callers 1

dumpFunction · 0.85

Calls 1

get_module_base_addressFunction · 0.85

Tested by

no test coverage detected