最終更新:2017-12-15 (金) 11:52:31 (2330d)
CallingConvention.Cdecl
Top / CallingConvention.Cdecl
呼び出し元がスタックを消去します。
The caller cleans the stack. This enables calling functions with varargs, which makes it appropriate to use for methods that accept a variable number of parameters, such as Printf.
例
[DllImport("msvcrt.dll", CharSet=CharSet.Unicode, CallingConvention=CallingConvention.Cdecl)] public static extern int printf(String format, int i, double d);