title: How to fix a "Pinvoke stack imbalance detected" error
body: <p>I'm trying to send a key to a window with PostMessage.  But after my program sends the key, I get an error in the debugging window.</p>
  
  <p>The error that comes is this one: PInvoke stack imbalance detected.</p>
  
  <p>I think I'm calling the DLL wrong:</p>
  
  <pre><code>[DllImport("user32.dll")]
  public static extern bool PostMessage(IntPtr hWnd, uint Msg, int wParam, Int64 lParam);
  </code></pre>