ICallIndirect::GetMethodInfo method (callobj.h)

Retrieves information about the interface method from the call frame.

Syntax

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

Parameters

[in] iMethod

The method number.

[out] pInfo

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

[out] pwszMethod

The method name. This parameter is optional.

Return value

This method can return the following values.

Return code Description
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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header callobj.h

See also

ICallIndirect