GetFunctionParameterTypeAt 方法将 i-th 参数的类型返回到函数。
语法
HRESULT GetFunctionParameterTypeAt(
  ULONG64        i,
  IDebugHostType **parameterType
);
参数
i
要为其检索参数类型的函数参数列表中的从零开始的索引。
parameterType
此处将返回函数的第 i 个参数的类型。
返回值
此方法返回指示成功或失败的 HRESULT。
言论
示例代码
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.
        }
    }
}
要求
| 要求 | 价值 | 
|---|---|
| 标头 | dbgmodel.h |