Struct windows::Win32::System::Wmi::IWbemServices
pub struct IWbemServices(/* private fields */);
Implementations§
§impl IWbemServices
impl IWbemServices
pub unsafe fn OpenNamespace<P0, P1>(
&self,
strnamespace: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
ppworkingnamespace: Option<*mut Option<IWbemServices>>,
ppresult: Option<*mut Option<IWbemCallResult>>,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
pub unsafe fn CancelAsyncCall<P0>(&self, psink: P0) -> Result<()>where
P0: Param<IWbemObjectSink>,
pub unsafe fn QueryObjectSink( &self, lflags: WBEM_GENERIC_FLAG_TYPE, ) -> Result<IWbemObjectSink>
pub unsafe fn GetObject<P0, P1>(
&self,
strobjectpath: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
ppobject: Option<*mut Option<IWbemClassObject>>,
ppcallresult: Option<*mut Option<IWbemCallResult>>,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
pub unsafe fn GetObjectAsync<P0, P1, P2>(
&self,
strobjectpath: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
presponsehandler: P2,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
P2: Param<IWbemObjectSink>,
pub unsafe fn PutClass<P0, P1>(
&self,
pobject: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
ppcallresult: Option<*mut Option<IWbemCallResult>>,
) -> Result<()>where
P0: Param<IWbemClassObject>,
P1: Param<IWbemContext>,
pub unsafe fn PutClassAsync<P0, P1, P2>( &self, pobject: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2, ) -> Result<()>
pub unsafe fn DeleteClass<P0, P1>(
&self,
strclass: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
ppcallresult: Option<*mut Option<IWbemCallResult>>,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
pub unsafe fn DeleteClassAsync<P0, P1, P2>(
&self,
strclass: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
presponsehandler: P2,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
P2: Param<IWbemObjectSink>,
pub unsafe fn CreateClassEnum<P0, P1>(
&self,
strsuperclass: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
) -> Result<IEnumWbemClassObject>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
pub unsafe fn CreateClassEnumAsync<P0, P1, P2>(
&self,
strsuperclass: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
presponsehandler: P2,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
P2: Param<IWbemObjectSink>,
pub unsafe fn PutInstance<P0, P1>(
&self,
pinst: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
ppcallresult: Option<*mut Option<IWbemCallResult>>,
) -> Result<()>where
P0: Param<IWbemClassObject>,
P1: Param<IWbemContext>,
pub unsafe fn PutInstanceAsync<P0, P1, P2>( &self, pinst: P0, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: P1, presponsehandler: P2, ) -> Result<()>
pub unsafe fn DeleteInstance<P0, P1>(
&self,
strobjectpath: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
ppcallresult: Option<*mut Option<IWbemCallResult>>,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
pub unsafe fn DeleteInstanceAsync<P0, P1, P2>(
&self,
strobjectpath: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
presponsehandler: P2,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
P2: Param<IWbemObjectSink>,
pub unsafe fn CreateInstanceEnum<P0, P1>(
&self,
strfilter: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
) -> Result<IEnumWbemClassObject>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
pub unsafe fn CreateInstanceEnumAsync<P0, P1, P2>(
&self,
strfilter: P0,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P1,
presponsehandler: P2,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<IWbemContext>,
P2: Param<IWbemObjectSink>,
pub unsafe fn ExecQuery<P0, P1, P2>(
&self,
strquerylanguage: P0,
strquery: P1,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P2,
) -> Result<IEnumWbemClassObject>where
P0: Param<BSTR>,
P1: Param<BSTR>,
P2: Param<IWbemContext>,
pub unsafe fn ExecQueryAsync<P0, P1, P2, P3>(
&self,
strquerylanguage: P0,
strquery: P1,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P2,
presponsehandler: P3,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
P2: Param<IWbemContext>,
P3: Param<IWbemObjectSink>,
pub unsafe fn ExecNotificationQuery<P0, P1, P2>(
&self,
strquerylanguage: P0,
strquery: P1,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P2,
) -> Result<IEnumWbemClassObject>where
P0: Param<BSTR>,
P1: Param<BSTR>,
P2: Param<IWbemContext>,
pub unsafe fn ExecNotificationQueryAsync<P0, P1, P2, P3>(
&self,
strquerylanguage: P0,
strquery: P1,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P2,
presponsehandler: P3,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
P2: Param<IWbemContext>,
P3: Param<IWbemObjectSink>,
pub unsafe fn ExecMethod<P0, P1, P2, P3>(
&self,
strobjectpath: P0,
strmethodname: P1,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P2,
pinparams: P3,
ppoutparams: Option<*mut Option<IWbemClassObject>>,
ppcallresult: Option<*mut Option<IWbemCallResult>>,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
P2: Param<IWbemContext>,
P3: Param<IWbemClassObject>,
pub unsafe fn ExecMethodAsync<P0, P1, P2, P3, P4>(
&self,
strobjectpath: P0,
strmethodname: P1,
lflags: WBEM_GENERIC_FLAG_TYPE,
pctx: P2,
pinparams: P3,
presponsehandler: P4,
) -> Result<()>where
P0: Param<BSTR>,
P1: Param<BSTR>,
P2: Param<IWbemContext>,
P3: Param<IWbemClassObject>,
P4: Param<IWbemObjectSink>,
Trait Implementations§
§impl CanInto<IUnknown> for IWbemServices
impl CanInto<IUnknown> for IWbemServices
§impl Clone for IWbemServices
impl Clone for IWbemServices
§fn clone(&self) -> IWbemServices
fn clone(&self) -> IWbemServices
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 IWbemServices
impl Debug for IWbemServices
§impl Deref for IWbemServices
impl Deref for IWbemServices
§impl From<&IWbemServices> for &IUnknown
impl From<&IWbemServices> for &IUnknown
§fn from(value: &IWbemServices) -> Self
fn from(value: &IWbemServices) -> Self
Converts to this type from the input type.
§impl From<IWbemServices> for IUnknown
impl From<IWbemServices> for IUnknown
§fn from(value: IWbemServices) -> Self
fn from(value: IWbemServices) -> Self
Converts to this type from the input type.
§impl Interface for IWbemServices
impl Interface for IWbemServices
§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 IWbemServices
impl PartialEq for IWbemServices
§fn eq(&self, other: &IWbemServices) -> bool
fn eq(&self, other: &IWbemServices) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IWbemServices
impl StructuralPartialEq for IWbemServices
Auto Trait Implementations§
impl Freeze for IWbemServices
impl RefUnwindSafe for IWbemServices
impl !Send for IWbemServices
impl !Sync for IWbemServices
impl Unpin for IWbemServices
impl UnwindSafe for IWbemServices
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
)