pub struct IWbemPath(/* private fields */);
Implementations§
§impl IWbemPath
impl IWbemPath
pub unsafe fn SetText<P0>(&self, umode: u32, pszpath: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetText( &self, lflags: i32, pubufflength: *mut u32, psztext: PWSTR, ) -> Result<()>
pub unsafe fn GetInfo(&self, urequestedinfo: u32) -> Result<u64>
pub unsafe fn SetServer<P0>(&self, name: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetServer( &self, punamebuflength: *mut u32, pname: PWSTR, ) -> Result<()>
pub unsafe fn GetNamespaceCount(&self) -> Result<u32>
pub unsafe fn SetNamespaceAt<P0>(&self, uindex: u32, pszname: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetNamespaceAt( &self, uindex: u32, punamebuflength: *mut u32, pname: PWSTR, ) -> Result<()>
pub unsafe fn RemoveNamespaceAt(&self, uindex: u32) -> Result<()>
pub unsafe fn RemoveAllNamespaces(&self) -> Result<()>
pub unsafe fn GetScopeCount(&self) -> Result<u32>
pub unsafe fn SetScope<P0>(&self, uindex: u32, pszclass: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetScopeFromText<P0>(
&self,
uindex: u32,
psztext: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetScope( &self, uindex: u32, puclassnamebufsize: *mut u32, pszclass: PWSTR, pkeylist: *mut Option<IWbemPathKeyList>, ) -> Result<()>
pub unsafe fn GetScopeAsText( &self, uindex: u32, putextbufsize: *mut u32, psztext: PWSTR, ) -> Result<()>
pub unsafe fn RemoveScope(&self, uindex: u32) -> Result<()>
pub unsafe fn RemoveAllScopes(&self) -> Result<()>
pub unsafe fn SetClassName<P0>(&self, name: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetClassName( &self, pubufflength: *mut u32, pszname: PWSTR, ) -> Result<()>
pub unsafe fn GetKeyList(&self) -> Result<IWbemPathKeyList>
pub unsafe fn CreateClassPart<P0>(&self, lflags: i32, name: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DeleteClassPart(&self, lflags: i32) -> Result<()>
pub unsafe fn IsRelative<P0, P1>(
&self,
wszmachine: P0,
wsznamespace: P1,
) -> BOOLwhere
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn IsRelativeOrChild<P0, P1>(
&self,
wszmachine: P0,
wsznamespace: P1,
lflags: i32,
) -> BOOLwhere
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn IsLocal<P0>(&self, wszmachine: P0) -> BOOLwhere
P0: Param<PCWSTR>,
pub unsafe fn IsSameClassName<P0>(&self, wszclass: P0) -> BOOLwhere
P0: Param<PCWSTR>,
Trait Implementations§
§impl Interface for IWbemPath
impl Interface for IWbemPath
§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 Eq for IWbemPath
impl StructuralPartialEq for IWbemPath
Auto Trait Implementations§
impl Freeze for IWbemPath
impl RefUnwindSafe for IWbemPath
impl !Send for IWbemPath
impl !Sync for IWbemPath
impl Unpin for IWbemPath
impl UnwindSafe for IWbemPath
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
)