Struct windows::Win32::System::RemoteDesktop::ITsSbResourcePluginStore
pub struct ITsSbResourcePluginStore(/* private fields */);
Implementations§
§impl ITsSbResourcePluginStore
impl ITsSbResourcePluginStore
pub unsafe fn QueryTarget<P0, P1>(
&self,
targetname: P0,
farmname: P1,
) -> Result<ITsSbTarget>where
P0: Param<BSTR>,
P1: Param<BSTR>,
pub unsafe fn QuerySessionBySessionId<P0>(
&self,
dwsessionid: u32,
targetname: P0,
) -> Result<ITsSbSession>where
P0: Param<BSTR>,
pub unsafe fn AddTargetToStore<P0>(&self, ptarget: P0) -> Result<()>where
P0: Param<ITsSbTarget>,
pub unsafe fn AddSessionToStore<P0>(&self, psession: P0) -> Result<()>where
P0: Param<ITsSbSession>,
pub unsafe fn AddEnvironmentToStore<P0>(&self, penvironment: P0) -> Result<()>where
P0: Param<ITsSbEnvironment>,
pub unsafe fn RemoveEnvironmentFromStore<P0, P1>(
&self,
environmentname: P0,
bignoreowner: P1,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BOOL>,
pub unsafe fn EnumerateFarms( &self, pdwcount: *mut u32, pval: *mut *mut SAFEARRAY, ) -> Result<()>
pub unsafe fn QueryEnvironment<P0>(
&self,
environmentname: P0,
) -> Result<ITsSbEnvironment>where
P0: Param<BSTR>,
pub unsafe fn EnumerateEnvironments( &self, pdwcount: *mut u32, pval: *mut *mut Option<ITsSbEnvironment>, ) -> Result<()>
pub unsafe fn SaveTarget<P0, P1>(
&self,
ptarget: P0,
bforcewrite: P1,
) -> Result<()>where
P0: Param<ITsSbTarget>,
P1: Param<BOOL>,
pub unsafe fn SaveEnvironment<P0, P1>(
&self,
penvironment: P0,
bforcewrite: P1,
) -> Result<()>where
P0: Param<ITsSbEnvironment>,
P1: Param<BOOL>,
pub unsafe fn SaveSession<P0>(&self, psession: P0) -> Result<()>where
P0: Param<ITsSbSession>,
pub unsafe fn SetTargetProperty<P0, P1>(
&self,
targetname: P0,
propertyname: P1,
pproperty: *const VARIANT,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
pub unsafe fn SetEnvironmentProperty<P0, P1>(
&self,
environmentname: P0,
propertyname: P1,
pproperty: *const VARIANT,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
pub unsafe fn SetTargetState<P0>(
&self,
targetname: P0,
newstate: TARGET_STATE,
) -> Result<TARGET_STATE>where
P0: Param<BSTR>,
pub unsafe fn SetSessionState<P0>(&self, sbsession: P0) -> Result<()>where
P0: Param<ITsSbSession>,
pub unsafe fn EnumerateTargets<P0, P1, P2>(
&self,
farmname: P0,
envname: P1,
sortbyfieldid: TS_SB_SORT_BY,
sortybypropname: P2,
pdwcount: *mut u32,
pval: *mut *mut Option<ITsSbTarget>,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
P2: Param<BSTR>,
pub unsafe fn EnumerateSessions<P0, P1, P2, P3, P4>(
&self,
targetname: P0,
username: P1,
userdomain: P2,
poolname: P3,
initialprogram: P4,
psessionstate: *const TSSESSION_STATE,
pdwcount: *mut u32,
ppval: *mut *mut Option<ITsSbSession>,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
P2: Param<BSTR>,
P3: Param<BSTR>,
P4: Param<BSTR>,
pub unsafe fn GetFarmProperty<P0, P1>(
&self,
farmname: P0,
propertyname: P1,
pvarvalue: *const VARIANT,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
pub unsafe fn DeleteTarget<P0, P1>(
&self,
targetname: P0,
hostname: P1,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
pub unsafe fn SetTargetPropertyWithVersionCheck<P0, P1>(
&self,
ptarget: P0,
propertyname: P1,
pproperty: *const VARIANT,
) -> Result<()>where
P0: Param<ITsSbTarget>,
P1: Param<BSTR>,
pub unsafe fn SetEnvironmentPropertyWithVersionCheck<P0, P1>(
&self,
penvironment: P0,
propertyname: P1,
pproperty: *const VARIANT,
) -> Result<()>where
P0: Param<ITsSbEnvironment>,
P1: Param<BSTR>,
pub unsafe fn AcquireTargetLock<P0>(
&self,
targetname: P0,
dwtimeout: u32,
) -> Result<IUnknown>where
P0: Param<BSTR>,
pub unsafe fn ReleaseTargetLock<P0>(&self, pcontext: P0) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn TestAndSetServerState<P0, P1>(
&self,
poolname: P0,
serverfqdn: P1,
newstate: TARGET_STATE,
teststate: TARGET_STATE,
) -> Result<TARGET_STATE>where
P0: Param<BSTR>,
P1: Param<BSTR>,
pub unsafe fn SetServerWaitingToStart<P0, P1>(
&self,
poolname: P0,
servername: P1,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
pub unsafe fn GetServerState<P0, P1>(
&self,
poolname: P0,
serverfqdn: P1,
) -> Result<TARGET_STATE>where
P0: Param<BSTR>,
P1: Param<BSTR>,
pub unsafe fn SetServerDrainMode<P0>(
&self,
serverfqdn: P0,
drainmode: u32,
) -> Result<()>where
P0: Param<BSTR>,
Trait Implementations§
§impl CanInto<IUnknown> for ITsSbResourcePluginStore
impl CanInto<IUnknown> for ITsSbResourcePluginStore
§impl Clone for ITsSbResourcePluginStore
impl Clone for ITsSbResourcePluginStore
§fn clone(&self) -> ITsSbResourcePluginStore
fn clone(&self) -> ITsSbResourcePluginStore
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 ITsSbResourcePluginStore
impl Debug for ITsSbResourcePluginStore
§impl Deref for ITsSbResourcePluginStore
impl Deref for ITsSbResourcePluginStore
§impl From<&ITsSbResourcePluginStore> for &IUnknown
impl From<&ITsSbResourcePluginStore> for &IUnknown
§fn from(value: &ITsSbResourcePluginStore) -> Self
fn from(value: &ITsSbResourcePluginStore) -> Self
Converts to this type from the input type.
§impl From<ITsSbResourcePluginStore> for IUnknown
impl From<ITsSbResourcePluginStore> for IUnknown
§fn from(value: ITsSbResourcePluginStore) -> Self
fn from(value: ITsSbResourcePluginStore) -> Self
Converts to this type from the input type.
§impl Interface for ITsSbResourcePluginStore
impl Interface for ITsSbResourcePluginStore
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ITsSbResourcePluginStore
impl PartialEq for ITsSbResourcePluginStore
§fn eq(&self, other: &ITsSbResourcePluginStore) -> bool
fn eq(&self, other: &ITsSbResourcePluginStore) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ITsSbResourcePluginStore
impl StructuralPartialEq for ITsSbResourcePluginStore
Auto Trait Implementations§
impl Freeze for ITsSbResourcePluginStore
impl RefUnwindSafe for ITsSbResourcePluginStore
impl !Send for ITsSbResourcePluginStore
impl !Sync for ITsSbResourcePluginStore
impl Unpin for ITsSbResourcePluginStore
impl UnwindSafe for ITsSbResourcePluginStore
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)