The GetCallbackPtr has to actually be a callback not one just defined by the user.
For instance
MonitorEnumProc.
The reason for this is because Patchou had to define these functions within Messenger Plus! itself therefore it will not allow you to define a function and get a pointer to it.