Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetDesktopWindow" in [All]

user32

.

An application that maintains its own minimized child windows can use the ArrangeIconicWindows function to arrange icons in a parent window. This function can also arrange icons on the desktop. To retrieve the window handle to the desktop window, use the GetDesktopWindow function.

.
Summary
The GetDesktopWindow function returns a handle to the desktop window. The desktop window covers the entire screen. The desktop window is the area on top of which other windows are painted.
.

static extern IntPtr GetDesktopWindow();

.

Private Shared Function GetDesktopWindow() As IntPtr

.

Private Declare Auto Function GetDesktopWindow Lib "user32.dll" () As IntPtr

.

    Private Declare Auto Function GetDesktopWindow Lib "user32.dll" () As IntPtr

.
Documentation
[GetDesktopWindow] on MSDN
.

static extern IntPtr GetDesktopWindow();

.

IntPtr handle = MonitorFromWindow(GetDesktopWindow(), MONITOR_DEFAULTTONEAREST);

coredll

.

   IntPtr hWnd = GetDesktopWindow();

.
Summary
GetDesktopWindow() returns a handle to the home screen.
.

private static extern IntPtr GetDesktopWindow();

.

Declare Function GetDesktopWindow Lib "coredll.dll" () As IntPtr

.

private static extern IntPtr GetDesktopWindow();

.

    SetForegroundWindow (GetDesktopWindow());

.
Documentation
[GetDesktopWindow] on MSDN
.

private static extern IntPtr GetDesktopWindow ();

.

    SetForegroundWindow (GetDesktopWindow ());


 
Access PInvoke.net directly from VS: