pub struct IDispatch(/* private fields */);
Implementations§
Source§impl IDispatch
impl IDispatch
pub unsafe fn GetTypeInfoCount(&self) -> Result<u32, Error>
pub unsafe fn GetTypeInfo( &self, itinfo: u32, lcid: u32, ) -> Result<ITypeInfo, Error>
pub unsafe fn GetIDsOfNames( &self, riid: *const GUID, rgsznames: *const PCWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32, ) -> Result<(), Error>
Sourcepub unsafe fn Invoke(
&self,
dispidmember: i32,
riid: *const GUID,
lcid: u32,
wflags: DISPATCH_FLAGS,
pdispparams: *const DISPPARAMS,
pvarresult: Option<*mut VARIANT>,
pexcepinfo: Option<*mut EXCEPINFO>,
puargerr: Option<*mut u32>,
) -> Result<(), Error>
pub unsafe fn Invoke( &self, dispidmember: i32, riid: *const GUID, lcid: u32, wflags: DISPATCH_FLAGS, pdispparams: *const DISPPARAMS, pvarresult: Option<*mut VARIANT>, pexcepinfo: Option<*mut EXCEPINFO>, puargerr: Option<*mut u32>, ) -> Result<(), Error>
Required features: "Win32_Foundation"
, "Win32_System_Ole"
, "Win32_System_Variant"
Trait Implementations§
Source§impl ComInterface for IDispatch
impl ComInterface for IDispatch
fn as_unknown(&self) -> &IUnknown
Source§fn cast<T>(&self) -> Result<T, Error>where
T: ComInterface,
fn cast<T>(&self) -> Result<T, Error>where
T: ComInterface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreSource§impl IDispatchExt for IDispatch
impl IDispatchExt for IDispatch
Source§impl Interface for IDispatch
impl Interface for IDispatch
type Vtable = IDispatch_Vtbl
Source§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.Source§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.
Source§impl<'a> VariantTypeExt<'a, &'a IDispatch> for VARIANT
impl<'a> VariantTypeExt<'a, &'a IDispatch> for VARIANT
impl Eq for IDispatch
impl StructuralPartialEq for IDispatch
Auto Trait Implementations§
impl Freeze for IDispatch
impl RefUnwindSafe for IDispatch
impl !Send for IDispatch
impl !Sync for IDispatch
impl Unpin for IDispatch
impl UnwindSafe for IDispatch
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