Run WinForms Gui app as standard user

Adam Bruss <[email protected]> Mon, 14 May 2012 15:07:10 +0000
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hello,

I'm getting this error message from a child program ran by ant in a cruisecontrol build.

"The application failed to initialize properly. Usually indicates that the application has been launched on a Desktop to which current user has no access rights. Another possible cause is that either gdi32.dll or user32.dll has failed to initialize."

The flow of how the software is run is as follows: Java cruisecontrol -> ant -> ant exec task -> c++ console application -> PsExec -> GUI application(software)

The GUI application is ran with PsExec as a standard user for testing purposes. The software runs successfully when ran by the console application and psexec from the command line. The problem starts when running through Cruisecontrol. The error message comes from the GUI application early before any of our code is executed.

Has anyone tried to do something like this before or have any ideas for a solution? The main thing I need to do is run a Windows Forms application as a standard user from cruisecontrol. The Windows Forms application runs successfully as admin.

Thanks,
-Adam

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/