Calling a Method With No Arguments (Windows CE 5.0)
The simplest use of IDispatch::Invoke is to call a method that does not have parameters. You only need to pass the DISPID of the method, a LCID, the DISPATCH_METHOD flag, and an empty DISPPARAMS structure.
Most methods take one or more parameters. To invoke these methods, the DISPPARAMS structure should be filled in, as described in Passing Parameters.
Automation defines special DISPIDs for invoking an object's Value property (the default), and the members _NewEnum, and Evaluate.
See Also
Automation | CoCreateInstance | DISPPARAMS | IDispatch::GetIDsOfNames | IDispatch::Invoke | IUnknown | IUnknown::QueryInterface
Send Feedback on this topic to the authors