GetShellWindow Function
GetShellWindow Function

The GetShellWindow function returns a handle to the Shell's desktop window.

Syntax

HWND GetShellWindow(VOID);

Return Value

The return value is the handle of the Shell's desktop window. If no Shell process is present, the return value is NULL.

Function Information

Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systems Windows 2000

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
C# syntax      olampl   |   Edit   |   Show History

[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
private static extern IntPtr GetShellWindow();
Tags What's this?: c# (x) invoke (x) Add a tag
Flag as ContentBug
Processing
Page view tracker