For 32 bit DLLs (such as KERNEL32, GDI32, and USER32), use the stdcall calling convention.

For 16 bit DLLs, there are two supported calling conventions, pascal and cdecl. The calling convention specifies how parameters are passed on the stack to a DLL.

If you are unsure of the calling convention for a function in a 16-bit DLL, assume that it is pascal.