PostThreadMessage function Null safety user32

int PostThreadMessage(
  1. int idThread,
  2. int Msg,
  3. int wParam,
  4. int lParam

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


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);