IDebugHostType::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

另請參閱

IDebugHostType 介面