How can I get an event relative to when the main window of an external process is showed?
I start the process using
pi = new ProcessStartInfo();
[...]
Process.Start(pi)
Than I want to get the moment the main window appears and resize and move it using:
[System.Runtime.InteropServices.DllImport("user32.dll", SetLastError = true)]
internal static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);