이 페이지가 유용했습니까?
이 콘텐츠에 대한 여러분의 의견은 중요합니다. 의견을 알려주십시오.
추가 의견
1500자 남음
내보내기(0) 인쇄
모두 확장
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

METHODDATA Data Type

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;      // Description of whether this is a 
            // method or a PROPERTYGET, PROPERTYPUT, or PROPERTYPUTREF.
   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 VTBL of the interface. 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 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

VARTYPE

Return type for the method.

Microsoft는 MSDN 웹 사이트에 대한 귀하의 의견을 이해하기 위해 온라인 설문 조사를 진행하고 있습니다. 참여하도록 선택하시면 MSDN 웹 사이트에서 나가실 때 온라인 설문 조사가 표시됩니다.

참여하시겠습니까?
표시:
© 2015 Microsoft