﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
344	RunAs + StdxxxRead doesn't work as expected on XP SP1 and XP RTM	DaveF	Valik	"When running a script like this one:

{{{
Dim $ourProcess, $ourOutput
;
; No output on STDOUT @ rev 3244 - 3372
$ourProcess = RunAs(""chump"", @ComputerName, ""tolchock"", 1, @ComSpec & "" /c dir foo.bar"", @SystemDir, @SW_HIDE, 2)

While 1
    $ourOutput &= StdoutRead($ourProcess)
    $ourError = @error
    MsgBox(0, ""Debug"", ""@error returned: "" & $ourError & "", @extended (chars read) is: "" & @extended)
    If $ourError Then ExitLoop
WEnd
MsgBox(0, ""STDOUT output:"", ""["" & @AutoItVersion & ""]"" & @CRLF & $ourOutput)
}}}
...on Windows XP RTM and XP SP1, no output is returned to StdoutRead and the child console window is briefly visible, seemingly in disregard of the flags provided in the RunAs function.

In Windows XP SP2 and Server 2003 SP2 output is returned as desired to StdoutRead and the console window is correctly hidden.

The test environments between the OS versions were as close as I could make them to identical, in that I was running as an Administrator, the RunAs user existed and had access to the test files. A matching test script using the Run function with STDOUT redirection worked as expected on all tested OS versions."	Bug	closed		AutoIt	3.2.12.0	None	Wont Fix		
