#include <WinAPI.au3>
#include 'Array.au3'

$aRet = _GetDesktopWorkArea()
_ArrayDisplay($aRet)

Func _GetDesktopWorkArea()
	Local Const $SPI_GETWORKAREA = 48
	Local $sRect = DllStructCreate($tagRECT)

	If _WinAPI_SystemParametersInfo($SPI_GETWORKAREA, 0, DllStructGetPtr($sRect)) Then
		Local $aRet[4] = [ _
		DllStructGetData($sRect, "Left"), _
		DllStructGetData($sRect, "Top"), _
		DllStructGetData($sRect, "Right"), _
		DllStructGetData($sRect, "Bottom")]
		Return SetError(0, 0, $aRet)
	EndIf
	Return SetError(1, 0, 0)
EndFunc   ;==>_GetDesktopWorkArea