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

Global $aConst[87] = [ _
'SM_CXSCREEN', _
'SM_CYSCREEN', _
'SM_CXVSCROLL', _
'SM_CYHSCROLL', _
'SM_CYCAPTION', _
'SM_CXBORDER', _
'SM_CYBORDER', _
'SM_CXDLGFRAME', _
'SM_CYDLGFRAME', _
'SM_CYVTHUMB', _
'SM_CXHTHUMB', _
'SM_CXICON', _
'SM_CYICON', _
'SM_CXCURSOR', _
'SM_CYCURSOR', _
'SM_CYMENU', _
'SM_CXFULLSCREEN', _
'SM_CYFULLSCREEN', _
'SM_CYKANJIWINDOW', _
'SM_MOUSEPRESENT', _
'SM_CYVSCROLL', _
'SM_CXHSCROLL', _
'SM_DEBUG', _
'SM_SWAPBUTTON', _
'SM_RESERVED1', _
'SM_RESERVED2', _
'SM_RESERVED3', _
'SM_RESERVED4', _
'SM_CXMIN', _
'SM_CYMIN', _
'SM_CXSIZE', _
'SM_CYSIZE', _
'SM_CXFRAME', _
'SM_CYFRAME', _
'SM_CXMINTRACK', _
'SM_CYMINTRACK', _
'SM_CXDOUBLECLK', _
'SM_CYDOUBLECLK', _
'SM_CXICONSPACING', _
'SM_CYICONSPACING', _
'SM_MENUDROPALIGNMENT', _
'SM_PENWINDOWS', _
'SM_DBCSENABLED', _
'SM_CMOUSEBUTTONS', _
'SM_SECURE', _
'SM_CXEDGE', _
'SM_CYEDGE', _
'SM_CXMINSPACING', _
'SM_CYMINSPACING', _
'SM_CXSMICON', _
'SM_CYSMICON', _
'SM_CYSMCAPTION', _
'SM_CXSMSIZE', _
'SM_CYSMSIZE', _
'SM_CXMENUSIZE', _
'SM_CYMENUSIZE', _
'SM_ARRANGE', _
'SM_CXMINIMIZED', _
'SM_CYMINIMIZED', _
'SM_CXMAXTRACK', _
'SM_CYMAXTRACK', _
'SM_CXMAXIMIZED', _
'SM_CYMAXIMIZED', _
'SM_NETWORK', _
'SM_CLEANBOOT', _
'SM_CXDRAG', _
'SM_CYDRAG', _
'SM_SHOWSOUNDS', _
'SM_CXMENUCHECK', _
'SM_CYMENUCHECK', _
'SM_SLOWMACHINE', _
'SM_MIDEASTENABLED', _
'SM_MOUSEWHEELPRESENT', _
'SM_XVIRTUALSCREEN', _
'SM_YVIRTUALSCREEN', _
'SM_CXVIRTUALSCREEN', _
'SM_CYVIRTUALSCREEN', _
'SM_CMONITORS', _
'SM_SAMEDISPLAYFORMAT', _
'SM_IMMENABLED', _
'SM_CXFOCUSBORDER', _
'SM_CYFOCUSBORDER', _
'SM_TABLETPC', _
'SM_MEDIACENTER', _
'SM_STARTER', _
'SM_SERVERR2', _
'SM_CMETRICS']

_Example() ; сортировка по константе
_ArraySort($aConst)
_Example() ; сортировка по алфавиту

Func _Example()
	$a=UBound($aConst)
	Local $sRes[$a][3]
	For $i = 0 To $a - 1
		$n = Eval($aConst[$i])
		$sRes[$i][0]=$aConst[$i]
		$sRes[$i][1]=$n
		$sRes[$i][2]=_WinAPI_GetSystemMetrics($n)
	Next
	_ArrayDisplay($sRes, 'Результат', -1, 0, '', '|', 'ix|Имя|№|Значение')
EndFunc