IDebugHostType::GetFunctionParameterTypeAt 메서드(dbgmodel.h)
GetFunctionParameterTypeAt 메서드는 i-th 인수의 형식을 함수에 반환합니다.
구문
HRESULT GetFunctionParameterTypeAt(
ULONG64 i,
IDebugHostType **parameterType
);
매개 변수
i
인수 형식을 검색할 함수 인수 목록에 있는 인덱스(0부터 시작)입니다.
parameterType
함수에 대한 i-th 인수의 형식이 여기에 반환됩니다.
반환 값
이 메서드는 성공 또는 실패를 나타내는 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 |
추가 정보
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기