ICallIndirect::GetMethodInfo method

Retrieves information about the interface method from the call frame.

Syntax


HRESULT GetMethodInfo(
  [in]  ULONG         iMethod,
  [out] CALLFRAMEINFO *pInfo,
  [out] LPWSTR        *pwszMethod
);

Parameters

iMethod [in]

The method number.

pInfo [out]

A pointer to the CALLFRAMEINFO structure containing information about the specified method.

pwszMethod [out]

The method name. This parameter is optional.

Return value

This method can return the following values.

Return codeDescription
S_OK

The method completed successfully.

E_UNEXPECTED

An unexpected error has occurred.

 

Remarks

The information returned is a static analysis of the method, not a dynamic one, in that it is based on an analysis of the method signature only, not the actual current contents of the call frame. For example, the static analysis might indicate that this method has the potential of having an in-interface, but because of, say, a union switch, a given call might not actually have any such interfaces. This method is equivalent to the GetInfo and GetNames methods in ICallFrame, but avoids the need to actually make any invocation to get the information.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Callobj.h

IDL

Callobj.idl

IID

IID_ICallIndirect is defined as D573B4B1-894E-11d2-B8B6-00C04FB9618A

See also

ICallIndirect

 

 

Show: