User32GetShellWindow Method
Retrieves a handle to the Shell's desktop window.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static IntPtr GetShellWindow()
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function GetShellWindow As IntPtr
Dim returnValue As IntPtr
returnValue = User32.GetShellWindow()
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static IntPtr GetShellWindow()
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member GetShellWindow : unit -> IntPtr
No code example is currently available or this language may not be supported.
Return Value
IntPtr
The handle of the Shell's desktop window.
If no Shell process is present, the return value is
Zero.