#include <WinAPI.au3>
#include <WindowsConstants.au3>

_Main()

Func _Main()
	Local $hWnd, $hDC, $sText
	$hWnd = GUICreate("Тест")
	$hDC = _WinAPI_GetDC($hWnd)
	$sText = ''
	For $i = 0 To 20
		$sText &= _WinAPI_GetDeviceCaps($hDC, $i) & @LF
	Next
	MsgBox(0, 'Сообщение', $sText)
	_WinAPI_ReleaseDC($hWnd, $hDC)
EndFunc   ;==>_Main