次の方法で共有


METHODDATA (Compact 2013)

3/26/2014

This structure is used to describe a method or property.

Syntax

typedef struct FARSTRUCT tagMETHODDATA {
  OLECHAR FAR* zName;
  PARAMDATA FAR* ppData;
  DISPID dispid;
  unsigned int iMeth;
  CALLCONV cc;
  unsigned int cArgs;
  unsigned short wFlags;
  VARTYPE vtReturn;
} METHODDATA;

Members

  • szName
    Null-terminated string that contains the method name.
  • ppData
    Parameters for the method. The first parameter is ppdata[0], and so on.
  • dispid
    Identifier of the method, as used in IDispatch.
  • iMeth
    Index of the method in the VTBL of the interface. The indexes start with 0.
  • cc
    Specifies the calling convention. The CDECL and Pascal calling conventions are supported by the dispatch interface creation functions.
  • cArgs
    Number of arguments for the method.
  • wFlags
    Flags that indicate whether the method is used for getting or setting a property. DISPATCH_METHOD indicates that this is not used for a property. DISPATCH_PROPERTYGET indicates that the method is used to get a property value. DISPATCH_PROPERTYPUT indicates that the method is used to set the value of a property. DISPATCH_PROPERTYPUTREF indicates that the method is used to make the property refer to a passed-in object.
  • vtReturn
    Return type for the method.

Requirements

Header

oleauto.h

See Also

Reference

Automation Structures
IDispatch