getshellwindow (user32)
Last changed: -73.246.221.57

.
Summary
Gets the window handle of the desktop

C# Signature:

/// <summary>
///     Retrieves a handle to the Shell's desktop window.
///     <para>
///     Go to https://msdn.microsoft.com/en-us/library/windows/desktop/ms633512%28v=vs.85%29.aspx for more
///     information
///     </para>
/// </summary>
/// <returns>
///     C++ ( Type: HWND )<br />The return value is the handle of the Shell's desktop window. If no Shell process is
///     present, the return value is NULL.
/// </returns>
[DllImport("user32.dll")]
static extern IntPtr GetShellWindow();

VB Signature:

<DllImport("user32.dll")>
Shared Function GetShellWindow() As IntPtr
End Function

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Please add some!

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation