METHODDATA

Used to describe a method or property.

typedef struct FARSTRUCT tagMETHODDATA {

OLECHAR FAR* szName; // Member name

PARAMDATA FAR* ppdata; // Pointer to array of PARAMDATAs

DISPID dispid; // Member ID

unsigned int iMeth; // Method index

CALLCONV cc; // Calling convention

unsigned int cArgs; // Count of arguments

unsigned short wFlags; // Whether this is a method or
// a property get, put, or putref

VARTYPE vtReturn; // Return type

} METHODDATA;

The following table describes the fields of the METHODDATA structure:

Name
Type
Description
szName
OLECHAR FAR*
The method name.
ppdata
PARAMDATA FAR*
The parameters for the method. The first parameter is ppdata[0], and so on.
dispid
DISPID
The ID of the method as used in IDispatch.
iMeth
unsigned int
The index of the method in the interface's VTBL. The indexes start with 0.
cc
CALLCONV
The calling convention. The CDECL and Pascal calling conventions are supported by the dispatch interface creation functions, such as CreateStdDispatch.
cArgs
unsigned int
The number of arguments for the method.
wFlags
unsigned short
Flags that indicate whether the method is used for getting or setting a property. The flags are the same as in IDispatch::Invoke. DISPATCH_METHOD indicates this is not used for a property. DISPATCH_PROPERTYGET indicates the method is used to get a property value. DISPATCH_PROPERTYPUT indicates the method is used to set the value of a property. DISPATCH_PROPERTYPUTREF indicates the method is used to make the property refer to a passed-in object.
  • tReturn
VARTYPE
Return type for the method.

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