Struct IsolatedWindowsEnvironment
pub struct IsolatedWindowsEnvironment(/* private fields */);
Implementations§
§impl IsolatedWindowsEnvironment
impl IsolatedWindowsEnvironment
pub fn Id(&self) -> Result<HSTRING>
pub fn StartProcessSilentlyAsync( &self, hostexepath: &HSTRING, arguments: &HSTRING, activator: IsolatedWindowsEnvironmentActivator, ) -> Result<IAsyncOperation<IsolatedWindowsEnvironmentStartProcessResult>>
pub fn StartProcessSilentlyWithTelemetryAsync<P3>(
&self,
hostexepath: &HSTRING,
arguments: &HSTRING,
activator: IsolatedWindowsEnvironmentActivator,
telemetryparameters: P3,
) -> Result<IAsyncOperation<IsolatedWindowsEnvironmentStartProcessResult>>where
P3: Param<IsolatedWindowsEnvironmentTelemetryParameters>,
pub fn LaunchFileWithUIAsync( &self, appexepath: &HSTRING, argumentstemplate: &HSTRING, filepath: &HSTRING, ) -> Result<IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult>>
pub fn LaunchFileWithUIAndTelemetryAsync<P3>(
&self,
appexepath: &HSTRING,
argumentstemplate: &HSTRING,
filepath: &HSTRING,
telemetryparameters: P3,
) -> Result<IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult>>where
P3: Param<IsolatedWindowsEnvironmentTelemetryParameters>,
pub fn TerminateAsync(&self) -> Result<IAsyncAction>
pub fn TerminateWithTelemetryAsync<P0>(
&self,
telemetryparameters: P0,
) -> Result<IAsyncAction>where
P0: Param<IsolatedWindowsEnvironmentTelemetryParameters>,
pub fn RegisterMessageReceiver<P1>(
&self,
receiverid: GUID,
messagereceivedcallback: P1,
) -> Result<()>where
P1: Param<MessageReceivedCallback>,
pub fn UnregisterMessageReceiver(&self, receiverid: GUID) -> Result<()>
pub fn PostMessageToReceiverAsync<P1>(
&self,
receiverid: GUID,
message: P1,
) -> Result<IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult>>where
P1: Param<IIterable<IInspectable>>,
pub fn PostMessageToReceiverWithTelemetryAsync<P1, P2>(
&self,
receiverid: GUID,
message: P1,
telemetryparameters: P2,
) -> Result<IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult>>where
P1: Param<IIterable<IInspectable>>,
P2: Param<IsolatedWindowsEnvironmentTelemetryParameters>,
pub fn GetUserInfo(&self) -> Result<IsolatedWindowsEnvironmentUserInfo>
pub fn ChangePriority( &self, priority: IsolatedWindowsEnvironmentCreationPriority, ) -> Result<()>
pub fn CreateAsync<P0>(
options: P0,
) -> Result<IAsyncOperationWithProgress<IsolatedWindowsEnvironmentCreateResult, IsolatedWindowsEnvironmentCreateProgress>>where
P0: Param<IsolatedWindowsEnvironmentOptions>,
pub fn CreateWithTelemetryAsync<P0, P1>(
options: P0,
telemetryparameters: P1,
) -> Result<IAsyncOperationWithProgress<IsolatedWindowsEnvironmentCreateResult, IsolatedWindowsEnvironmentCreateProgress>>where
P0: Param<IsolatedWindowsEnvironmentOptions>,
P1: Param<IsolatedWindowsEnvironmentTelemetryParameters>,
pub fn GetById(environmentid: &HSTRING) -> Result<IsolatedWindowsEnvironment>
pub fn FindByOwnerId( environmentownerid: &HSTRING, ) -> Result<IVectorView<IsolatedWindowsEnvironment>>
Trait Implementations§
§impl CanInto<IInspectable> for IsolatedWindowsEnvironment
impl CanInto<IInspectable> for IsolatedWindowsEnvironment
§impl CanInto<IUnknown> for IsolatedWindowsEnvironment
impl CanInto<IUnknown> for IsolatedWindowsEnvironment
§impl Clone for IsolatedWindowsEnvironment
impl Clone for IsolatedWindowsEnvironment
§fn clone(&self) -> IsolatedWindowsEnvironment
fn clone(&self) -> IsolatedWindowsEnvironment
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 IsolatedWindowsEnvironment
impl Debug for IsolatedWindowsEnvironment
§impl From<&IsolatedWindowsEnvironment> for &IInspectable
impl From<&IsolatedWindowsEnvironment> for &IInspectable
§fn from(value: &IsolatedWindowsEnvironment) -> Self
fn from(value: &IsolatedWindowsEnvironment) -> Self
Converts to this type from the input type.
§impl From<&IsolatedWindowsEnvironment> for &IUnknown
impl From<&IsolatedWindowsEnvironment> for &IUnknown
§fn from(value: &IsolatedWindowsEnvironment) -> Self
fn from(value: &IsolatedWindowsEnvironment) -> Self
Converts to this type from the input type.
§impl From<IsolatedWindowsEnvironment> for IInspectable
impl From<IsolatedWindowsEnvironment> for IInspectable
§fn from(value: IsolatedWindowsEnvironment) -> Self
fn from(value: IsolatedWindowsEnvironment) -> Self
Converts to this type from the input type.
§impl From<IsolatedWindowsEnvironment> for IUnknown
impl From<IsolatedWindowsEnvironment> for IUnknown
§fn from(value: IsolatedWindowsEnvironment) -> Self
fn from(value: IsolatedWindowsEnvironment) -> Self
Converts to this type from the input type.
§impl Interface for IsolatedWindowsEnvironment
impl Interface for IsolatedWindowsEnvironment
§const IID: GUID = <IIsolatedWindowsEnvironment as windows_core::Interface>::IID
const IID: GUID = <IIsolatedWindowsEnvironment as windows_core::Interface>::IID
The
GUID
associated with the interface.§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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 IsolatedWindowsEnvironment
impl PartialEq for IsolatedWindowsEnvironment
impl Eq for IsolatedWindowsEnvironment
impl Send for IsolatedWindowsEnvironment
impl StructuralPartialEq for IsolatedWindowsEnvironment
impl Sync for IsolatedWindowsEnvironment
Auto Trait Implementations§
impl Freeze for IsolatedWindowsEnvironment
impl RefUnwindSafe for IsolatedWindowsEnvironment
impl Unpin for IsolatedWindowsEnvironment
impl UnwindSafe for IsolatedWindowsEnvironment
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