0 out of 1 rated this helpful - Rate this topic

METHODDATA structure

Applies to: desktop apps only

Describes a method or property.

Syntax

typedef struct tagMETHODDATA {
  OLECHAR   *szName;
  PARAMDATA *ppdata;
  DISPID    dispid;
  UINT      iMeth;
  CALLCONV  cc;
  UINT      cArgs;
  WORD      wFlags;
  VARTYPE   vtRturn;
} METHODDATA, *LPMETHODDATA;

Members

szName

The method name.

ppdata

An array of method parameters.

dispid

The ID of the method, as used in IDispatch.

iMeth

The index of the method in the VTBL of the interface, starting with 0.

cc

The calling convention. The CDECL and Pascal calling conventions are supported by the dispatch interface creation functions, such as CreateStdDispatch.

cArgs

The number of arguments.

wFlags

Invoke flags.

ValueMeaning
DISPATCH_METHOD

The member is invoked as a method. If a property has the same name, both this and the DISPATCH_PROPERTYGET flag can be set.

DISPATCH_PROPERTYGET

The member is retrieved as a property or data member.

DISPATCH_PROPERTYPUT

The member is set as a property or data member.

DISPATCH_PROPERTYPUTREF

The member is changed by a reference assignment, rather than a value assignment. This flag is valid only when the property accepts a reference to an object.

 

vtRturn

The return type for the method.

Requirements

Header

OleAuto.h

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ