APICALL and BACKCALL can be something like __stdcall or __cdecl (compiler-specific).
APICALL set the calling convention for exported symbols.
BACKCALL set the calling convention for callback pointers.
By default, the code uses C standard (Cdecl) calling conventions. One can override the calling conventions by defining their own APICALL and BACKCALL macro.