Struct ITargetInfo
pub struct ITargetInfo(/* private fields */);
Implementations§
§impl ITargetInfo
impl ITargetInfo
pub unsafe fn GetTargetMode(&self) -> Result<WcmTargetMode>
pub unsafe fn SetTargetMode(&self, targetmode: WcmTargetMode) -> Result<()>
pub unsafe fn GetTemporaryStoreLocation(&self) -> Result<BSTR>
pub unsafe fn SetTemporaryStoreLocation<P0>(
&self,
temporarystorelocation: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetTargetID(&self) -> Result<BSTR>
pub unsafe fn SetTargetID(&self, targetid: GUID) -> Result<()>
pub unsafe fn GetTargetProcessorArchitecture(&self) -> Result<BSTR>
pub unsafe fn SetTargetProcessorArchitecture<P0>(
&self,
processorarchitecture: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetProperty<P1>(
&self,
offline: bool,
property: P1,
) -> Result<BSTR>where
P1: Param<PCWSTR>,
pub unsafe fn SetProperty<P1, P2>(
&self,
offline: bool,
property: P1,
value: P2,
) -> Result<()>where
P1: Param<PCWSTR>,
P2: Param<PCWSTR>,
pub unsafe fn GetEnumerator(&self) -> Result<IItemEnumerator>
pub unsafe fn ExpandTarget<P1>(
&self,
offline: bool,
location: P1,
) -> Result<BSTR>where
P1: Param<PCWSTR>,
pub unsafe fn ExpandTargetPath<P1>(
&self,
offline: bool,
location: P1,
) -> Result<BSTR>where
P1: Param<PCWSTR>,
pub unsafe fn SetModulePath<P0, P1>(&self, module: P0, path: P1) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn LoadModule<P0>(&self, module: P0) -> Result<HMODULE>where
P0: Param<PCWSTR>,
pub unsafe fn SetWow64Context<P0>(
&self,
installermodule: P0,
wow64context: *const u8,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn TranslateWow64<P0, P1>(
&self,
clientarchitecture: P0,
value: P1,
) -> Result<BSTR>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn SetSchemaHiveLocation<P0>(&self, pwzhivedir: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetSchemaHiveLocation(&self) -> Result<BSTR>
pub unsafe fn SetSchemaHiveMountName<P0>(&self, pwzmountname: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetSchemaHiveMountName(&self) -> Result<BSTR>
Trait Implementations§
§impl CanInto<IUnknown> for ITargetInfo
impl CanInto<IUnknown> for ITargetInfo
§impl Clone for ITargetInfo
impl Clone for ITargetInfo
§fn clone(&self) -> ITargetInfo
fn clone(&self) -> ITargetInfo
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 ITargetInfo
impl Debug for ITargetInfo
§impl From<&ITargetInfo> for &IUnknown
impl From<&ITargetInfo> for &IUnknown
§fn from(value: &ITargetInfo) -> Self
fn from(value: &ITargetInfo) -> Self
Converts to this type from the input type.
§impl From<ITargetInfo> for IUnknown
impl From<ITargetInfo> for IUnknown
§fn from(value: ITargetInfo) -> Self
fn from(value: ITargetInfo) -> Self
Converts to this type from the input type.
§impl Interface for ITargetInfo
impl Interface for ITargetInfo
§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 ITargetInfo
impl PartialEq for ITargetInfo
impl Eq for ITargetInfo
impl StructuralPartialEq for ITargetInfo
Auto Trait Implementations§
impl Freeze for ITargetInfo
impl RefUnwindSafe for ITargetInfo
impl !Send for ITargetInfo
impl !Sync for ITargetInfo
impl Unpin for ITargetInfo
impl UnwindSafe for ITargetInfo
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