Struct windows::Win32::System::TaskScheduler::IPrincipal
pub struct IPrincipal(/* private fields */);
Implementations§
§impl IPrincipal
impl IPrincipal
pub unsafe fn Id(&self, pid: *mut BSTR) -> Result<()>
pub unsafe fn SetId<P0>(&self, id: P0) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn DisplayName(&self, pname: *mut BSTR) -> Result<()>
pub unsafe fn SetDisplayName<P0>(&self, name: P0) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn UserId(&self, puser: *mut BSTR) -> Result<()>
pub unsafe fn SetUserId<P0>(&self, user: P0) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn LogonType(&self, plogon: *mut TASK_LOGON_TYPE) -> Result<()>
pub unsafe fn SetLogonType(&self, logon: TASK_LOGON_TYPE) -> Result<()>
pub unsafe fn GroupId(&self, pgroup: *mut BSTR) -> Result<()>
pub unsafe fn SetGroupId<P0>(&self, group: P0) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn RunLevel(&self, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> Result<()>
pub unsafe fn SetRunLevel(&self, runlevel: TASK_RUNLEVEL_TYPE) -> Result<()>
Trait Implementations§
§impl Clone for IPrincipal
impl Clone for IPrincipal
§fn clone(&self) -> IPrincipal
fn clone(&self) -> IPrincipal
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 IPrincipal
impl Debug for IPrincipal
§impl From<&IPrincipal> for &IDispatch
impl From<&IPrincipal> for &IDispatch
§fn from(value: &IPrincipal) -> Self
fn from(value: &IPrincipal) -> Self
Converts to this type from the input type.
§impl From<&IPrincipal> for &IUnknown
impl From<&IPrincipal> for &IUnknown
§fn from(value: &IPrincipal) -> Self
fn from(value: &IPrincipal) -> Self
Converts to this type from the input type.
§impl From<IPrincipal> for IDispatch
impl From<IPrincipal> for IDispatch
§fn from(value: IPrincipal) -> Self
fn from(value: IPrincipal) -> Self
Converts to this type from the input type.
§impl From<IPrincipal> for IUnknown
impl From<IPrincipal> for IUnknown
§fn from(value: IPrincipal) -> Self
fn from(value: IPrincipal) -> Self
Converts to this type from the input type.
§impl Interface for IPrincipal
impl Interface for IPrincipal
§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 IPrincipal
impl PartialEq for IPrincipal
§fn eq(&self, other: &IPrincipal) -> bool
fn eq(&self, other: &IPrincipal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IPrincipal
impl StructuralPartialEq for IPrincipal
Auto Trait Implementations§
impl RefUnwindSafe for IPrincipal
impl !Send for IPrincipal
impl !Sync for IPrincipal
impl Unpin for IPrincipal
impl UnwindSafe for IPrincipal
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