User32GetShellWindow Method

Retrieves a handle to the Shell's desktop window.

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 GetShellWindow()

Return Value

IntPtr
The handle of the Shell's desktop window.

If no Shell process is present, the return value is Zero.

Remarks

See Also