, , WSAAPI , WSAAPI Winsock2.h :
#define WSAAPI FAR PASCAL
minwindef.h:
#define FAR far
#define far
#if (!defined(_MAC)) && ((_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED))
#define pascal __stdcall
#else
#define pascal
#endif
#ifdef _MAC
#ifdef _68K_
#define PASCAL __pascal
#else
#define PASCAL
#endif
#elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)
#define PASCAL __stdcall
#else
#define PASCAL pascal
#endif
. _MSC_VER 800 Visual ++ 1.0, .
So it looks like if you write Mac code and _68K_, you get the __pascal calling convention. If you are using Visual C ++> = 1.0 and developing for Windows, this is the __stdcall calling convention. Otherwise, it is either __stdcall or nothing, depending on whether _STDCALL_SUPPORTED is defined.
So basically WSAAPI probably evaluates __stdcall on your machine.
source
share