Try this: #include <StaticConstants.au3> $sProcess = "firefox.exe" $sIcon = _ProcessGetIcon($sProcess) If Not @error Then $iWidth = 400 $iHeight = 120 GUICreate("_ProcessGetIcon - Extract Icon From Process Demo", $iWidth, $iHeight) GUISetIcon($sIcon) GUICtrlCreateLabel("Extracted Icon: " & @CRLF & $sIcon, 0, ($iHeight/2) - (32/2) - 30, $iWidth, 30, $SS_CENTER) GUICtrlCreateIcon($sIcon, 0, ($iWidth/2) - (32/2), ($iHeight/2) - (32/2), 32, 32) GUISetState() While