Export (0) Print
Expand All

CallConvStdcall Class

Indicates that a method should use the StdCall calling convention.

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)] 
public class CallConvStdcall
/** @attribute ComVisibleAttribute(true) */ 
public class CallConvStdcall
ComVisibleAttribute(true) 
public class CallConvStdcall

The callee cleans the stack. This is the default convention for calling unmanaged functions from managed code.

The classes in System.Runtime.CompilerServices are for compiler writers' use only.

Compilers emit custom modifiers within metadata to change the way that the just-in-time (JIT) compiler handles values when the default behavior is not appropriate. When the JIT compiler encounters a custom modifier, it handles the value in the way that the modifier specifies. Compilers can apply custom modifiers to methods, parameters, and return values. The JIT compiler must respond to required modifiers but can ignore optional modifiers. A C++ compiler could emit a custom modifier to describe how a byte should be treated in cases where the JIT compiler treats bytes in a manner that is not compatible with C++ by default.

You can emit custom modifiers into metadata using one of the following techniques:

System.Object
  System.Runtime.CompilerServices.CallConvStdcall

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft