problem about createprocessasuser-Collection of common programming errors


  • Jader Dias
    c# .net process createprocessasuser
    I tried var process = new Process {StartInfo = new ProcessStartInfo{FileName = filename,UserName = “System”,UseShellExecute = false,}, };process.Start();but it yieldsWin32Exception was unhandledLogin failed: unknown user name or wrong passwordI will have to use CreateProcessAsUser? How can I get the appropriate parameters to pass to that method?

  • Martin
    c# winapi processes privileges createprocessasuser
    I’ve been attempting to create a new process under the context of a specific user using the CreateProcessAsUser function of the Windows API, but seem to be running into a rather nasty security issue…Before I explain any further, here’s the code I’m currently using to start the new process (a console process – PowerShell to be specific, though it shouldn’t matter).private void StartProcess(){bool retValue;// Create startup info for new console process.var startupInfo = new STARTUPINFO();startup

Web site is in building