IDebugHostType::GetFunctionParameterTypeAt-Methode (dbgmodel.h)

Die GetFunctionParameterTypeAt-Methode gibt den Typ des i-ten Arguments an die Funktion zurück.

Syntax

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

Parameter

i

Ein nullbasierter Index in der Funktionsargumentliste, für die der Argumenttyp abgerufen werden soll.

parameterType

Der Typ des i-ten Arguments für die Funktion wird hier zurückgegeben.

Rückgabewert

Diese Methode gibt HRESULT zurück, das den Erfolg oder Fehler angibt.

Hinweise

Beispielcode

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

Anforderungen

Anforderung Wert
Header dbgmodel.h

Weitere Informationen

IDebugHostType-Schnittstelle