Esempio n. 1
0
 public static extern bool ShowWindowAsync(IntPtr hWnd, WindowShowStyle nCmdShow);
 public static extern bool ShowWindowAsync(IntPtr hWnd, WindowShowStyle cmdShow);
Esempio n. 3
0
 internal static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow);
Esempio n. 4
0
 public static extern int ShowWindow(IntPtr hWnd, WindowShowStyle cmdShow);
Esempio n. 5
0
		public bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow)
			=> ShowWindow(hWnd, nCmdShow);
 public static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle showStyle);
 public static extern int ShowWindow(int hwnd, WindowShowStyle command);
 public static extern int ShowWindow(this IntPtr hwnd, WindowShowStyle nCmdShow);
Esempio n. 9
0
 /// <summary>
 /// Sets the <see cref="WindowShowStyle"/> for the current process' main window.
 /// </summary>
 /// <param name="windowShowStyle">Specifies how the window is to be shown.</param>
 public static void SetWindowState(WindowShowStyle windowShowStyle)
 {
     SetWindowState(Process.GetCurrentProcess().MainWindowHandle, windowShowStyle);
 }
Esempio n. 10
0
 public static extern int ShowWindow(int hwnd, WindowShowStyle command);
Esempio n. 11
0
 public static extern bool ShowWindows(IntPtr hwnd, WindowShowStyle nCmdShow);
 private static extern bool ShowWindow(IntPtr hwnd, WindowShowStyle nCmdShow);
Esempio n. 13
0
 private static extern bool ShowWindow(IntPtr hwnd, WindowShowStyle nCmdShow);
Esempio n. 14
0
 public static extern void ShellExecuteFromExplorer(
     [MarshalAs(UnmanagedType.LPWStr)] string file,
     [MarshalAs(UnmanagedType.LPWStr)] string arguments,
     [MarshalAs(UnmanagedType.LPWStr)] string directory,
     [MarshalAs(UnmanagedType.LPWStr)] string verb,
     WindowShowStyle windowStyle
 );
Esempio n. 15
0
 /// <summary>
 /// Sets the <see cref="WindowShowStyle"/> for the window with the specified <paramref name="windowHandle"/>.
 /// </summary>
 /// <remarks>
 /// Do Not give this function the handle of the desktop!
 /// </remarks>
 /// <exception cref="ArgumentException">The <paramref name="windowHandle"/> parameter is an invalid pointer.</exception>
 /// <param name="windowHandle">Handle to the window.</param>
 /// <param name="windowShowStyle">Specifies how the window is to be shown.</param>
 public static void SetWindowState(IntPtr windowHandle, WindowShowStyle windowShowStyle)
 {
   if (windowHandle == IntPtr.Zero)
     throw new ArgumentException("The windowHandle parameter is an invalid pointer.", "windowHandle");
   ShowWindow(windowHandle, windowShowStyle);
 }
Esempio n. 16
0
 private static extern bool ShowWindowInternal(IntPtr hWnd, WindowShowStyle nCmdShow);
Esempio n. 17
0
 /// <summary>
 /// Sets the <see cref="WindowShowStyle"/> for the current process' main window.
 /// </summary>
 /// <param name="windowShowStyle">Specifies how the window is to be shown.</param>
 public static void SetWindowState(WindowShowStyle windowShowStyle)
 {
   SetWindowState(Process.GetCurrentProcess().MainWindowHandle, windowShowStyle);
 }
Esempio n. 18
0
 public static extern int ShowWindow(IntPtr hWnd, WindowShowStyle command);
Esempio n. 19
0
 private static extern bool ShowWindow(
   IntPtr hWnd,
   WindowShowStyle style);
Esempio n. 20
0
 public static bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow)
 {
     return(ShowWindow(hWnd, nCmdShow));
 }
Esempio n. 21
0
 internal static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow);
Esempio n. 22
0
 public void ShowWindow(WindowShowStyle flags)
 {
     ForciblyControlWindow(() => ShowWindow(WindowHandle, flags));
 }