blowdart wrote:
 | Sven Groot wrote:
So it's up to you to make sure your app works with UAP. Which means that your main application should work without being elevated (i.e. it should work under limited user rights), and whenever it needs to do something that needs more rights, it should delegate that task to a different process that asks to elevate. The visual design guidelines for Vista applications specify that whenever you do this, you should indicate it with the shield icon.
|
You learn something new every day! Thanks Sven!
Now, who has a managed code sample?

For starting a process?
using System.Diagnostics;
ProcessStartInfo startInfo = new ProcessStartInfo( "MyProc.exe" );
startInfo.UserName = "fred";
startInfo.Password = "oopsamIreallygoingtostorethisincode";
startInfo.WorkingDirectory = @"c:\AnywhereSoThatItIsntSystem32";
Process.Start( startInfo );