__stdcall Calling Convention

To use this linkage convention, use the __stdcall keyword in the declaration of the function. You can make __stdcall the default linkage by specifying the call Code Generation Option (gen(call,stdcall)).

The following rules apply to the __stdcall calling convention:

Note: When building export lists in .def files, the decorated version of the name should be used. This is automatically handled when using #pragma export. If you use undecorated names in the .def file, you must give the object files to ILIB along with the .def file. ILIB will use the object files to determine how each name ended up after decoration.



Examples Using the __stdcall Convention