What is alternative to C# WPF Dispatcher.Invoke(...) when using C function pointers and hooks?
I want ask Windows C message loop to invoke my pointer. I PostThreadMessage user defined message(WM_USER+XXX) from worker thread and invoke pointer in WH_GETMESSAGE hook. But seems my message is not handled or arrived to hook. Standard messages I post DO.
How can do the same thing as C# WPF Dispatcher.Invoke(...) does using C function pointers and hooks?
What is alternative to C# WPF Dispatcher.Invoke(...) when using C function pointers and hooks?
===

I want ask Windows C message loop to invoke my pointer. I PostThreadMessage user defined message(WM_USER+XXX) from worker thread and invoke pointer in WH_GETMESSAGE hook. But seems my message is not handled or arrived to hook. Standard messages I post DO.
How can do the same thing as C# WPF Dispatcher.Invoke(...) does using C function pointers and hooks?