Esempio n. 1
0
 public void ChangeWindowState(WndState state)
 {
     IntPtr fgWnd = WinAPIs.GetForegroundWindow();
       WindowPlacement wp = new WindowPlacement();
       WinAPIs.GetWindowPlacement(fgWnd, ref wp);
       WinAPIs.ShowWindowAsync(fgWnd, (int)state);
 }
Esempio n. 2
0
 public static extern bool GetWindowPlacement(IntPtr hWnd, ref WindowPlacement lpWndPlc);