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

要求

要求
Header dbgmodel.h

另请参阅

IDebugHostType 接口