共用方式為


呼叫範例的結果

Microsoft 特定的

__cdecl

C 裝飾函式名稱為 _MyFunc

Diagram showing the stack and registers for the CDECL calling convention.
__cdecl呼叫慣例

__stdcallthiscall

C 裝飾名稱 ( __stdcall ) 為 _MyFunc@20 。 C++ 裝飾名稱是實作特定的。

Diagram showing the stack and registers for the S T D call and this call calling conventions.
__stdcall 和 thiscall 呼叫慣例

__fastcall

C 裝飾名稱 ( __fastcall ) 為 @MyFunc@20 。 C++ 裝飾名稱是實作特定的。

Diagram showing the stack and registers for the fast call calling convention.
__fastcall呼叫慣例

END Microsoft 特定的

另請參閱

呼叫範例:函式原型和呼叫