Método IDebugHostType::GetFunctionParameterTypeAt (dbgmodel.h)

O método GetFunctionParameterTypeAt retorna o tipo do argumento i-th para a função.

Sintaxe

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

Parâmetros

i

Um índice baseado em zero na lista de argumentos de função para o qual recuperar o tipo de argumento.

parameterType

O tipo do argumento i-th para a função será retornado aqui.

Retornar valor

Esse método retorna HRESULT que indica êxito ou falha.

Comentários

Código de exemplo

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

Requisitos

Requisito Valor
Cabeçalho dbgmodel.h

Confira também

Interface IDebugHostType