#[repr(C)]pub struct ExtraParameters {
pub exec_flags: *mut ExecFlags,
pub execute_code_segment: Option<unsafe extern "system" fn(c_int, Hwnd) -> c_int>,
pub validate_filename: Option<unsafe extern "system" fn(*mut Tchar)>,
pub register_plugin_callback: Option<unsafe extern "system" fn(Hmodule, NsisPluginCallback) -> c_int>,
}Expand description
The extra_parameters block, fifth argument to every plug-in export.
Fields§
§exec_flags: *mut ExecFlagsPointer to the installer’s live ExecFlags.
execute_code_segment: Option<unsafe extern "system" fn(c_int, Hwnd) -> c_int>Runs a code segment in the installer. Honest passthrough, no wrapper.
validate_filename: Option<unsafe extern "system" fn(*mut Tchar)>Replaces invalid filename characters in place.
register_plugin_callback: Option<unsafe extern "system" fn(Hmodule, NsisPluginCallback) -> c_int>Registers an unload callback. Returns 0 on success, 1 if already registered, and < 0 on error.
Auto Trait Implementations§
impl !Send for ExtraParameters
impl !Sync for ExtraParameters
impl Freeze for ExtraParameters
impl RefUnwindSafe for ExtraParameters
impl Unpin for ExtraParameters
impl UnsafeUnpin for ExtraParameters
impl UnwindSafe for ExtraParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more