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.dllHeaderDeclared in Winuser.h, include Windows.hImport libraryUser32.libMinimum operating systems Windows 2000
See Also
Windows Overview, GetDesktopWindow, GetWindow