IDebugHostType::GetFunctionParameterTypeAt method (dbgmodel.h)

The GetFunctionParameterTypeAt method returns the type of the i-th argument to the function.

Syntax

HRESULT GetFunctionParameterTypeAt(
  ULONG64        i,
  IDebugHostType **parameterType
);

Parameters

i

A zero based index into the function argument list for which to retrieve the argument type.

parameterType

The type of the i-th argument to the function will be returned here.

Return value

This method returns HRESULT that indicates success or failure.

Remarks

Sample Code

ComPtr<IDebugHostType> spType; /* get a type for a function (see FindTypeByName) */

// enumerate (in order) the types of parameters the function takes
ULONG64 count;
if (SUCCEEDED(spType->GetFunctionParameterTypeCount(&count)))
{
    for (ULONG64 i = 0; i < count; ++i)
    {
        ComPtr<IDebugHostType> spParamType;
        if (SUCCEEDED(spType->GetFunctionParameterTypeAt(i, &spParamType)))
        {
            // spParamType is the type symbol for the type of parameter the 
            // function takes at position i in the argument list.
        }
    }
}

Requirements

Requirement Value
Header dbgmodel.h

See also

IDebugHostType interface