title: Need help with RegisterWindowMessage and SendMessage from c++ to c#
body: <p>I have this code in C#:</p>
  
  <pre><code>[DllImport("user32.dll", CharSet = CharSet.Unicode)]
  static extern uint RegisterWindowMessage(string lpProcName);
  
  [DllImport("user32.dll")]
  private static extern IntPtr SendMessage(
     IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
  </code></pre>
  
  <p>and I need to convert this from C++ to C#:</p>
  
  <pre><code>UINT UWM_UART_CTRL_TRS = ::RegisterWindowMessage(_T("BT_UARTCTRL_TRANSFER"));
  ::SendMessage(HWND_BROADCAST, UWM_UART_CTRL_TRS, 0, 0);
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>UINT UWM_UART_CTRL_TRS = ::RegisterWindowMessage(_T("BT_UARTCTRL_TRANSFER"));
  ::SendMessage(HWND_BROADCAST, UWM_UART_CTRL_TRS, 1, 0);
  </code></pre>
  
  <p>Thanks in advance</p>