ExitReason (MQLONG)

This is set on entry to the exit routine. For the API-crossing exit it indicates whether the routine is called before or after execution of the API call:

MQXR_BEFORE
Before API execution.
MQXR_AFTER
After API execution.

This is an input field to the exit.