Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Il metodo GetFunctionParameterTypeAt restituisce il tipo dell'argomento i-th alla funzione.
Sintassi
HRESULT GetFunctionParameterTypeAt(
ULONG64 i,
IDebugHostType **parameterType
);
Parametri
i
Indice in base zero nell'elenco di argomenti della funzione per il quale recuperare il tipo di argomento.
parameterType
Il tipo dell'argomento i-th per la funzione verrà restituito qui.
Valore restituito
Questo metodo restituisce HRESULT che indica l'esito positivo o negativo.
Osservazioni
codice di esempio
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.
}
}
}
Fabbisogno
Requisito | Valore |
---|---|
intestazione | dbgmodel.h |