Check if the thread requesting a UI callback is the UI thread, in which case we should just call the callback function directly instead of sending a message to the main window.
Check if the thread requesting a UI callback is the UI thread, in which case we should just call the callback function directly instead of sending a message to the main window.


secure-endpoints/netidmgr,secure-endpoints/netidmgr,secure-endpoints/netidmgr,secure-endpoints/netidmgr,secure-endpoints/netidmgr