共用方式為


IDebugHostType2::GetFunctionCallingConvention 方法 (dbgmodel.h)

GetFunctionCallingConvention 方法會傳回函式的呼叫慣例。 這類會以 CallingConventionKind 列舉的成員的形式傳回

語法

HRESULT GetFunctionCallingConvention(
  CallingConventionKind *conventionKind
);

參數

conventionKind

函式的呼叫慣例會在這裡傳回為 CallingConventionKind 列舉的成員。

傳回值

此方法會傳回表示成功或失敗的 HRESULT。

言論

範例程式代碼

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

要求

要求 價值
標頭 dbgmodel.h

另請參閱

IDebugHostType2 介面