DispInvoke
_this, ptinfo, dispidMember, wFlags, pparams, pvarResult, pexcepinfo, puArgErr)void FAR* _this
ITypeInfo FAR* ptinfo
DISPID dispidMember
unsigned short wFlags
DISPPARAMS FAR* pparams
VARIANT FAR* pvarResult
EXCEPINFO pexcepinfo
unsigned int FAR* puArgErr Automatically calls member functions on an interface, given type information for the interface. You can describe an interface with type information and implement IDispatch::Invoke for the interface using this single call. Parameters _this Pointer to an implementation of the IDispatch interface described by ptinfo. ptinfo Pointer to the type information describing the interface. dispidMember Identifies the member. Use GetIDsOfNames or the object's documentation to obtain the dispatch ID. wFlags Flags describing the context of the Invoke call, as follows:
Value
| Description
|
DISPATCH_METHOD
| The member is being invoked as a method. If a property has the same name, both
this and the DISPATCH_PROPERTYGET flag may be set. |
DISPATCH_PROPERTYGET
| The member is being retrieved as a
property or data member. |
DISPATCH_PROPERTYPUT
| The member is being changed as a
property or data member. |
DISPATCH_PROPERTYPUTREF
| The member is being changed via a reference assignment, rather than a
value assignment. This flag is valid only when the property accepts a reference to an object. |
SCODE
| Meaning
|
S_OK
| Success.
|
DISP_E_BADPARAMCOUNT
| The number of elements provided in DISPPARAMS is different from the number of
arguments accepted by the method or property.
|
DISP_E_BADVARTYPE
| One of the arguments in DISPPARAMS is not a valid variant type.
|
DISP_E_EXCEPTION
| The application needs to raise an exception. In this case, the structure
passed in pexcepinfo should be filled in.
|
DISP_E_MEMBERNOTFOUND
| The requested member does not exist.
|
DISP_E_NONAMEDARGS
| This implementation of IDispatch does not support named arguments.
|
DISP_E_OVERFLOW
| One of the arguments in DISPPARAMS could not be coerced to the specified type.
|
DISP_E_PARAMNOTFOUND
| One of the parameter IDs does not correspond to a parameter on the method. In
this case puArgErr is set to the first argument that contains the error.
|
DISP_E_PARAMNOTOPTIONAL
| A required parameter was omitted.
|
DISP_E_TYPEMISMATCH
| One or more of the arguments could not be coerced. The index within rgvarg of the first parameter with the incorrect type is returned in puArgErr.
|
E_INVALIDARG
| One of the arguments is invalid.
|
E_OUTOFMEMORY
| Insufficient memory to complete operation.
|
Other returns
| Any of the ITypeInfo::Invoke errors may also be returned.
|
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers - More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples - Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database