IDebugHostType::GetFunctionParameterTypeCount 方法 (dbgmodel.h)
GetFunctionParameterTypeCount 方法返回函数采用的参数数。 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.
}
要求
要求 | 价值 |
---|---|
标头 | dbgmodel.h |