Partager via


IDebugHostType2 ::GetFunctionCallingConvention, méthode (dbgmodel.h)

La méthode GetFunctionCallingConvention retourne la convention d’appel de la fonction. Tel est retourné en tant que membre de l’énumération CallingConventionKind.

Syntaxe

HRESULT GetFunctionCallingConvention(
  CallingConventionKind *conventionKind
);

Paramètres

conventionKind

La convention d’appel de la fonction est retournée ici en tant que membre de l’énumération CallingConventionKind.

Valeur de retour

Cette méthode retourne HRESULT qui indique la réussite ou l’échec.

Remarques

exemple de code

ComPtr<IDebugHostModule> spType; /* get a type for some function type (see FindTypeByName) */

CallingConventionKind conv;
if (SUCCEEDED(spType->GetCallingConvention(&conv)))
{
    // conv indicates the calling convention (e.g.: cdecl, thiscall, etc...)
}

Exigences

Exigence Valeur
d’en-tête dbgmodel.h

Voir aussi

interface IDebugHostType2