User32GhostWindowFromHungWindow Method

Returns the handle on the window being ghosted.

This function is the reciprocal of HungWindowFromGhostWindow(IntPtr).

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static IntPtr GhostWindowFromHungWindow(
	IntPtr hWndHung
)

Parameters

hWndHung  IntPtr
The handle of a hung window.

Return Value

IntPtr
The handle of the ghost window which shadows hWndHung, or Zero on failure.

Remarks

http://undoc.airesoft.co.uk/user32.dll/GhostWindowFromHungWindow.php

A ghost window replaces a window that hasn't called Get or PeekMessage for 5 seconds, in other words a hung window. It displays a bitmap of the hung window's client area.

See Also