# Function Reference

# _WinAPI_GetDesktopWindow

Returns the handle of the Windows desktop window

#include <WinAPISysWin.au3>
_WinAPI_GetDesktopWindow ( )

## Return Value

Returns the Handle of the desktop window

## See Also

Search GetDesktopWindow in MSDN Library.

## Example

    #include <MsgBoxConstants.au3>
    #include <WinAPISysWin.au3>

    Example()

    Func Example()
        Local $hWin = _WinAPI_GetDesktopWindow()
        MsgBox($MB_SYSTEMMODAL, "", WinGetTitle($hWin))
        MsgBox($MB_SYSTEMMODAL, "", $hWin)
    EndFunc   ;==>Example