getdesktopwindow (coredll)
Last changed: -202.134.36.114

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

C# Signature:

[DllImport("coredll.dll")]
private static extern IntPtr GetDesktopWindow();

VB Signature:

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

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

[DllImport ("coredll")]
private static extern bool SetForegroundWindow(IntPtr hWnd);

[DllImport ("coredll")]
private static extern IntPtr GetDesktopWindow();

private void SendToBack()
{
    SetForegroundWindow (GetDesktopWindow());
}

Documentation