IDebugHostType2::GetFunctionParameterTypeAt メソッド (dbgmodel.h)

GetFunctionParameterTypeAt メソッドは、i 番目の引数の型を関数に返します。

構文

HRESULT GetFunctionParameterTypeAt(
  ULONG64        i,
  IDebugHostType **parameterType
);

パラメーター

i

引数の型を取得する関数引数リストへの 0 から始まるインデックス。

parameterType

関数に対する i 番目の引数の型がここで返されます。

戻り値

このメソッドは、成功または失敗を示す 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.
        }
    }
}

要件

要件
Header dbgmodel.h

こちらもご覧ください

IDebugHostType2 インターフェイス