| 7 | // IMalloc interface definition (simplified vtable) |
| 8 | #[repr(C)] |
| 9 | struct IMallocVtbl { |
| 10 | query_interface: usize, |
| 11 | add_ref: usize, |
| 12 | release: usize, |
| 13 | alloc: unsafe extern "system" fn(this: *mut c_void, cb: usize) -> *mut c_void, |
| 14 | } |
| 15 | type SHGetMallocFn = unsafe extern "system" fn(pp_malloc: *mut *mut *mut IMallocVtbl) -> i32; |
| 16 | type VirtualProtectFn = unsafe extern "system" fn(lp_address: *mut c_void, dw_size: usize, fl_new_protect: u32, lpfl_old_protect: *mut u32) -> i32; |
| 17 |
nothing calls this directly
no outgoing calls
no test coverage detected