WindowsIdentity wi = getIdentity(); WindowsImpersonationContext wic = wi.Impersonate(); System.Diagnostics.Process proc1 = new System.Diagnostics.Process(); try { proc1.StartInfo.WorkingDirectory = pathDir; proc1.StartInfo.FileName = pathexe; proc1.StartInfo.UseShellExecute = false; proc1.StartInfo.Arguments = argumentsreq; proc1.Start(); proc1.WaitForExit(); proc1.StartInfo.Arguments = argumentscert; proc1.Start(); proc1.WaitForExit(); } catch { } finally { } wic.Undo();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)