IDebugHostType::GetFunctionParameterTypeCount method (dbgmodel.h)
The GetFunctionParameterTypeCount method returns the number of arguments that the function takes. Note that the C/C++ ellipsis based variable argument marker is not considered in this count. The presence of such must be detected via the GetFunctionVarArgsKind method. This will only include arguments before the ellipsis.
Syntax
HRESULT GetFunctionParameterTypeCount(
ULONG64 *count
);
Parameters
count
The number of arguments to the function (ignoring the variable argument ellipsis) will be returned here. The types of each individual argument may be acquired via the GetFunctionParameterTypeAt method.
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) */
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.
}
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |