Win32 API:PostMessage
BOOL WINAPI PostMessage(
_In_opt_ HWND hWnd,
_In_ UINT Msg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
I have a shared_ptr
created in a worker thread, and I need to pass it to the UI thread. How can I do it?
I have defined my own message WM_USER_THREAD
, hWnd
is the main window.