class Class1
{
 [DllImport("user32.dll",CharSet=CharSet.Unicode)]
  public static extern IntPtr PostMessage(IntPtr hwnd,int wMsg,IntPtr wParam,IntPtr lParam);
 
 [STAThread]
 static void Main(string[] args)
 {
  System.Diagnostics.Process p = System.Diagnostics.Process.Start("notepad.exe");
  p.WaitForInputIdle();

  int WM_CHAR = 0x0102;
  char c = 's';
  PostMessage(p.MainWindowHandle ,WM_CHAR ,new IntPtr(c), IntPtr.Zero);
 }
}

外部アプリを起動して文字列を送信したいのですが上手くいきません。
notepadの起動は出来るんですがPostMessageが全く無視されてしまいます
何が悪いのかサッパリ分かりません
お願いです助けてください。