_System Calling Convention in Windows

The language details of this calling convention are the same as for all other calling conventions. _System has the additional restriction that an unprototyped _System function with a variable number of arguments will not work.

To use this linkage convention, use the _System keyword in the declaration of the function. You can make _System the default linkage by specifying the /Ms compiler option.

The following rules apply to the _System calling convention:

Note: When building export or import lists in module definition files, the decorated version of the name should be used. This is automatically handled when using #pragma export and #pragma import.



Calling Conventions


_System Calling Convention in OS/2