Process p = new Process("teamviewer.exe -id --Password <password> -m presentation");
ShowWindow(p.MainWindowHandle,ShowMinimized);
</password>
Get the handle for the process and minimize the window. Our way of doing it is using the WIN32 API.
[DllImport("user32")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool ShowWindow(IntPtr hWnd, ShowWindowEnum flags);
private enum ShowWindowEnum{Hide = 0,
ShowNormal = 1,ShowMinimized = 2,ShowMaximized = 3,
Maximize = 3,ShowNormalNoActivate = 4,Show = 5,
Minimize = 6,ShowMinNoActivate = 7,ShowNoActivate = 8,
Restore = 9,ShowDefault = 10,ForceMinimized = 11};</pre>