IDebugHostType2::GetFunctionCallingConvention method (dbgmodel.h)

The GetFunctionCallingConvention method returns the calling convention of the function. Such is returned as a member of the CallingConventionKind enumeration.

Syntax

HRESULT GetFunctionCallingConvention(
  CallingConventionKind *conventionKind
);

Parameters

conventionKind

The calling convention of the function is returned here as a member of the CallingConventionKind enumeration.

Return value

This method returns HRESULT that indicates success or failure.

Remarks

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

Requirements

Requirement Value
Header dbgmodel.h

See also

IDebugHostType2 interface