Struct forward_dll::DllForwarder
source · pub struct DllForwarder<const N: usize> {
pub initialized: bool,
pub module_handle: HINSTANCE,
pub target_functions_address: [usize; N],
pub target_function_names: [&'static str; N],
pub lib_name: &'static str,
}Expand description
DLL 转发类型的具体实现。该类型不要自己实例化,应调用 forward_dll 宏生成具体的实例。
Fields§
§initialized: bool§module_handle: HINSTANCE§target_functions_address: [usize; N]§target_function_names: [&'static str; N]§lib_name: &'static strImplementations§
source§impl<const N: usize> DllForwarder<N>
impl<const N: usize> DllForwarder<N>
sourcepub fn forward_all(&mut self) -> ForwardResult<()>
pub fn forward_all(&mut self) -> ForwardResult<()>
将所有函数的跳转地址设置为对应的 DLL 的同名函数地址。