2 using System.Collections.Generic;
4 using System.Runtime.InteropServices;
11 internal static class NativeMethods
14 public static extern int ShowWindow(
int hWnd,
int nCmdShow);
17 public static extern int IsIconic(
int hWnd);
20 public static extern int MoveWindow(IntPtr hWnd,
int x,
int y,
int cx,
int cy, [MarshalAs(UnmanagedType.Bool)] Boolean repaint);
23 public static extern int SetFocus(IntPtr hWnd);
26 [
return: MarshalAs(UnmanagedType.Bool)]
27 public static extern bool GetWindowRect(
int hWnd, out Rect lpRect);
30 [
return: MarshalAs(UnmanagedType.Bool)]
31 public static extern bool SetForegroundWindow(
int hWnd);
33 [DllImport(
"User32", CharSet = CharSet.Unicode)]
34 public static extern int FindWindow(String lpClassName, String lpWindowName);