示例#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);
 }
示例#2
0
文件: WinAPIs.cs 项目: vexe/linuxizer
 public static extern bool GetWindowPlacement(IntPtr hWnd, ref WindowPlacement lpWndPlc);