Trait windows::Win32::System::TaskScheduler::ITaskSettings_Impl

pub trait ITaskSettings_Impl: Sized + IDispatch_Impl {
Show 40 methods // Required methods fn AllowDemandStart( &self, pallowdemandstart: *mut VARIANT_BOOL, ) -> Result<()>; fn SetAllowDemandStart(&self, allowdemandstart: VARIANT_BOOL) -> Result<()>; fn RestartInterval(&self, prestartinterval: *mut BSTR) -> Result<()>; fn SetRestartInterval(&self, restartinterval: &BSTR) -> Result<()>; fn RestartCount(&self, prestartcount: *mut i32) -> Result<()>; fn SetRestartCount(&self, restartcount: i32) -> Result<()>; fn MultipleInstances( &self, ppolicy: *mut TASK_INSTANCES_POLICY, ) -> Result<()>; fn SetMultipleInstances(&self, policy: TASK_INSTANCES_POLICY) -> Result<()>; fn StopIfGoingOnBatteries( &self, pstopifonbatteries: *mut VARIANT_BOOL, ) -> Result<()>; fn SetStopIfGoingOnBatteries( &self, stopifonbatteries: VARIANT_BOOL, ) -> Result<()>; fn DisallowStartIfOnBatteries( &self, pdisallowstart: *mut VARIANT_BOOL, ) -> Result<()>; fn SetDisallowStartIfOnBatteries( &self, disallowstart: VARIANT_BOOL, ) -> Result<()>; fn AllowHardTerminate( &self, pallowhardterminate: *mut VARIANT_BOOL, ) -> Result<()>; fn SetAllowHardTerminate( &self, allowhardterminate: VARIANT_BOOL, ) -> Result<()>; fn StartWhenAvailable( &self, pstartwhenavailable: *mut VARIANT_BOOL, ) -> Result<()>; fn SetStartWhenAvailable( &self, startwhenavailable: VARIANT_BOOL, ) -> Result<()>; fn XmlText(&self, ptext: *mut BSTR) -> Result<()>; fn SetXmlText(&self, text: &BSTR) -> Result<()>; fn RunOnlyIfNetworkAvailable( &self, prunonlyifnetworkavailable: *mut VARIANT_BOOL, ) -> Result<()>; fn SetRunOnlyIfNetworkAvailable( &self, runonlyifnetworkavailable: VARIANT_BOOL, ) -> Result<()>; fn ExecutionTimeLimit(&self, pexecutiontimelimit: *mut BSTR) -> Result<()>; fn SetExecutionTimeLimit(&self, executiontimelimit: &BSTR) -> Result<()>; fn Enabled(&self, penabled: *mut VARIANT_BOOL) -> Result<()>; fn SetEnabled(&self, enabled: VARIANT_BOOL) -> Result<()>; fn DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut BSTR) -> Result<()>; fn SetDeleteExpiredTaskAfter(&self, expirationdelay: &BSTR) -> Result<()>; fn Priority(&self, ppriority: *mut i32) -> Result<()>; fn SetPriority(&self, priority: i32) -> Result<()>; fn Compatibility(&self, pcompatlevel: *mut TASK_COMPATIBILITY) -> Result<()>; fn SetCompatibility(&self, compatlevel: TASK_COMPATIBILITY) -> Result<()>; fn Hidden(&self, phidden: *mut VARIANT_BOOL) -> Result<()>; fn SetHidden(&self, hidden: VARIANT_BOOL) -> Result<()>; fn IdleSettings(&self) -> Result<IIdleSettings>; fn SetIdleSettings( &self, pidlesettings: Option<&IIdleSettings>, ) -> Result<()>; fn RunOnlyIfIdle(&self, prunonlyifidle: *mut VARIANT_BOOL) -> Result<()>; fn SetRunOnlyIfIdle(&self, runonlyifidle: VARIANT_BOOL) -> Result<()>; fn WakeToRun(&self, pwake: *mut VARIANT_BOOL) -> Result<()>; fn SetWakeToRun(&self, wake: VARIANT_BOOL) -> Result<()>; fn NetworkSettings(&self) -> Result<INetworkSettings>; fn SetNetworkSettings( &self, pnetworksettings: Option<&INetworkSettings>, ) -> Result<()>;
}

Required Methods§

fn AllowDemandStart(&self, pallowdemandstart: *mut VARIANT_BOOL) -> Result<()>

fn SetAllowDemandStart(&self, allowdemandstart: VARIANT_BOOL) -> Result<()>

fn RestartInterval(&self, prestartinterval: *mut BSTR) -> Result<()>

fn SetRestartInterval(&self, restartinterval: &BSTR) -> Result<()>

fn RestartCount(&self, prestartcount: *mut i32) -> Result<()>

fn SetRestartCount(&self, restartcount: i32) -> Result<()>

fn MultipleInstances(&self, ppolicy: *mut TASK_INSTANCES_POLICY) -> Result<()>

fn SetMultipleInstances(&self, policy: TASK_INSTANCES_POLICY) -> Result<()>

fn StopIfGoingOnBatteries( &self, pstopifonbatteries: *mut VARIANT_BOOL, ) -> Result<()>

fn SetStopIfGoingOnBatteries( &self, stopifonbatteries: VARIANT_BOOL, ) -> Result<()>

fn DisallowStartIfOnBatteries( &self, pdisallowstart: *mut VARIANT_BOOL, ) -> Result<()>

fn SetDisallowStartIfOnBatteries( &self, disallowstart: VARIANT_BOOL, ) -> Result<()>

fn AllowHardTerminate( &self, pallowhardterminate: *mut VARIANT_BOOL, ) -> Result<()>

fn SetAllowHardTerminate(&self, allowhardterminate: VARIANT_BOOL) -> Result<()>

fn StartWhenAvailable( &self, pstartwhenavailable: *mut VARIANT_BOOL, ) -> Result<()>

fn SetStartWhenAvailable(&self, startwhenavailable: VARIANT_BOOL) -> Result<()>

fn XmlText(&self, ptext: *mut BSTR) -> Result<()>

fn SetXmlText(&self, text: &BSTR) -> Result<()>

fn RunOnlyIfNetworkAvailable( &self, prunonlyifnetworkavailable: *mut VARIANT_BOOL, ) -> Result<()>

fn SetRunOnlyIfNetworkAvailable( &self, runonlyifnetworkavailable: VARIANT_BOOL, ) -> Result<()>

fn ExecutionTimeLimit(&self, pexecutiontimelimit: *mut BSTR) -> Result<()>

fn SetExecutionTimeLimit(&self, executiontimelimit: &BSTR) -> Result<()>

fn Enabled(&self, penabled: *mut VARIANT_BOOL) -> Result<()>

fn SetEnabled(&self, enabled: VARIANT_BOOL) -> Result<()>

fn DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut BSTR) -> Result<()>

fn SetDeleteExpiredTaskAfter(&self, expirationdelay: &BSTR) -> Result<()>

fn Priority(&self, ppriority: *mut i32) -> Result<()>

fn SetPriority(&self, priority: i32) -> Result<()>

fn Compatibility(&self, pcompatlevel: *mut TASK_COMPATIBILITY) -> Result<()>

fn SetCompatibility(&self, compatlevel: TASK_COMPATIBILITY) -> Result<()>

fn Hidden(&self, phidden: *mut VARIANT_BOOL) -> Result<()>

fn SetHidden(&self, hidden: VARIANT_BOOL) -> Result<()>

fn IdleSettings(&self) -> Result<IIdleSettings>

fn SetIdleSettings(&self, pidlesettings: Option<&IIdleSettings>) -> Result<()>

fn RunOnlyIfIdle(&self, prunonlyifidle: *mut VARIANT_BOOL) -> Result<()>

fn SetRunOnlyIfIdle(&self, runonlyifidle: VARIANT_BOOL) -> Result<()>

fn WakeToRun(&self, pwake: *mut VARIANT_BOOL) -> Result<()>

fn SetWakeToRun(&self, wake: VARIANT_BOOL) -> Result<()>

fn NetworkSettings(&self) -> Result<INetworkSettings>

fn SetNetworkSettings( &self, pnetworksettings: Option<&INetworkSettings>, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§