pub struct IDispatchW(pub IDispatch);Expand description
The IDispatchW is a wrapper structure for the [windows::Win32::System::Com::IDispatch] interface.
It will be used for all of the IDispatch related actions and should always be called.
@0:[IDispatch] -> Pass the raw IDispatch.
Tuple Fields§
§0: IDispatchImplementations§
Source§impl IDispatchW
impl IDispatchW
Sourcepub fn invoke(
&self,
flags: DISPATCH_FLAGS,
name: &str,
args: Vec<Variant>,
) -> Result<Variant>
pub fn invoke( &self, flags: DISPATCH_FLAGS, name: &str, args: Vec<Variant>, ) -> Result<Variant>
This is the general invoke method for the idispatch.
Instead of using this one you can use the IDispatchW::get() IDispatchW::put()
or use the relative data type for more convenient cast.
Use vec![] for empty args and .into() to convert it to Variant.