IDebugHostType::GetFunctionParameterTypeCount 方法 (dbgmodel.h)

GetFunctionParameterTypeCount 方法返回函数采用的参数数。 请注意,此计数中不考虑基于 C/C++ 省略号的变量参数标记。 必须通过 GetFunctionVarArgsKind 方法检测到此类存在。 这将仅包括省略号前的参数。

语法

HRESULT GetFunctionParameterTypeCount(
  ULONG64 *count
);

参数

count

函数的参数数 (忽略变量参数省略号) 将在此处返回。 可以通过 GetFunctionParameterTypeAt 方法获取每个独立参数的类型。

返回值

此方法返回指示成功或失败的 HRESULT。

注解

示例代码

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

ULONG64 count;
if (SUCCEEDED(spType->GetFunctionParameterTypeCount(&count)))
{
    // count is the number of parameters the function takes.  This does not 
    // include any ellipsis for variable arguments.
}

要求

要求
Header dbgmodel.h

另请参阅

IDebugHostType 接口