GM_SetMessageCallbackEx

Sets the function to call to display error and warning messages generated during SDK operations. If a message callback is provided, a message dialog will not be shown, instead the callback function will be called with the error or warning message that would have been displayed. The callback is then free to do whatever they'd like, including just ignore the message, in which case the error code will still be returned from the function generating the message like normal.

Syntax

C++
Copy
void GM_SetMessageCallbackEx
(
GM_MessageCallbackFunc aCallbackFunc
boolean                 aThreadLocal,
void*                   aReserved       // reserved for future use, must be NULL
);