Struct windows::Win32::System::TaskScheduler::IRegisteredTask
pub struct IRegisteredTask(/* private fields */);
Implementations§
§impl IRegisteredTask
impl IRegisteredTask
pub unsafe fn Name(&self) -> Result<BSTR>
pub unsafe fn Path(&self) -> Result<BSTR>
pub unsafe fn State(&self) -> Result<TASK_STATE>
pub unsafe fn Enabled(&self) -> Result<VARIANT_BOOL>
pub unsafe fn SetEnabled<P0>(&self, enabled: P0) -> Result<()>where
P0: IntoParam<VARIANT_BOOL>,
pub unsafe fn Run<P0>(&self, params: P0) -> Result<IRunningTask>where
P0: IntoParam<VARIANT>,
pub unsafe fn RunEx<P0, P1>( &self, params: P0, flags: i32, sessionid: i32, user: P1 ) -> Result<IRunningTask>
pub unsafe fn GetInstances(&self, flags: i32) -> Result<IRunningTaskCollection>
pub unsafe fn LastRunTime(&self) -> Result<f64>
pub unsafe fn LastTaskResult(&self) -> Result<i32>
pub unsafe fn NumberOfMissedRuns(&self) -> Result<i32>
pub unsafe fn NextRunTime(&self) -> Result<f64>
pub unsafe fn Definition(&self) -> Result<ITaskDefinition>
pub unsafe fn Xml(&self) -> Result<BSTR>
pub unsafe fn GetSecurityDescriptor( &self, securityinformation: i32 ) -> Result<BSTR>
pub unsafe fn SetSecurityDescriptor<P0>(
&self,
sddl: P0,
flags: i32
) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn Stop(&self, flags: i32) -> Result<()>
pub unsafe fn GetRunTimes( &self, pststart: *const SYSTEMTIME, pstend: *const SYSTEMTIME, pcount: *mut u32, pruntimes: *mut *mut SYSTEMTIME ) -> Result<()>
Trait Implementations§
§impl Clone for IRegisteredTask
impl Clone for IRegisteredTask
§fn clone(&self) -> IRegisteredTask
fn clone(&self) -> IRegisteredTask
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IRegisteredTask
impl Debug for IRegisteredTask
§impl From<&IRegisteredTask> for &IDispatch
impl From<&IRegisteredTask> for &IDispatch
§fn from(value: &IRegisteredTask) -> Self
fn from(value: &IRegisteredTask) -> Self
Converts to this type from the input type.
§impl From<&IRegisteredTask> for &IUnknown
impl From<&IRegisteredTask> for &IUnknown
§fn from(value: &IRegisteredTask) -> Self
fn from(value: &IRegisteredTask) -> Self
Converts to this type from the input type.
§impl From<IRegisteredTask> for IDispatch
impl From<IRegisteredTask> for IDispatch
§fn from(value: IRegisteredTask) -> Self
fn from(value: IRegisteredTask) -> Self
Converts to this type from the input type.
§impl From<IRegisteredTask> for IUnknown
impl From<IRegisteredTask> for IUnknown
§fn from(value: IRegisteredTask) -> Self
fn from(value: IRegisteredTask) -> Self
Converts to this type from the input type.
§impl Interface for IRegisteredTask
impl Interface for IRegisteredTask
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IRegisteredTask
impl PartialEq for IRegisteredTask
§fn eq(&self, other: &IRegisteredTask) -> bool
fn eq(&self, other: &IRegisteredTask) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IRegisteredTask
impl StructuralPartialEq for IRegisteredTask
Auto Trait Implementations§
impl RefUnwindSafe for IRegisteredTask
impl !Send for IRegisteredTask
impl !Sync for IRegisteredTask
impl Unpin for IRegisteredTask
impl UnwindSafe for IRegisteredTask
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