PostThreadMessage function Null safety user32
Posts a message to the message queue of the specified thread. It returns without waiting for the thread to process the message.
BOOL PostThreadMessageW(
DWORD idThread,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
Implementation
int PostThreadMessage(int idThread, int Msg, int wParam, int lParam) {
final _PostThreadMessage = _user32.lookupFunction<
Int32 Function(Uint32 idThread, Uint32 Msg, IntPtr wParam, IntPtr lParam),
int Function(
int idThread, int Msg, int wParam, int lParam)>('PostThreadMessageW');
return _PostThreadMessage(idThread, Msg, wParam, lParam);
}