다음을 통해 공유


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.
}

요구 사항

요구 사항
헤더 dbgmodel.h

추가 정보

IDebugHostType 인터페이스