CallingConvention

CallingConvention
is an option to DefineDLLFunction that specifies what calling convention the DLL function uses.

DetailsDetails

  • To use CallingConvention, you first need to load .NET/Link using Needs["NETLink`"].
  • The default value is Automatic, which means use the platform default ( on all platforms except Windows CE, which is not supported by .NET/Link). Most DLL functions use the convention.
  • The possible values are , , , , and Automatic.
  • For more information on these values, see the .NET Framework documentation for the System.Runtime.InteropServices.CallingConvention enumeration.
New to Mathematica? Find your learning path »
Have a question? Ask support »