murrayju / CreateProcessAsUser

Creates a process in a different Windows session
MIT License
369 stars 114 forks source link

CreateProcessAsUser not ruinning my wpf application. #23

Open OmChetu opened 6 years ago

OmChetu commented 6 years ago

i want to run my wpf application through CreateProcessAsUser but its not running. why? ProcessExtensions.StartProcessAsCurrentUser(@"C:\Program Files (x86)\myapp\WpfClient.exe");

Please provide need full help. Thanks

OmChetu commented 6 years ago

I checked and found in my application was set as requireAdministrator in the manifest file. So now how to run this app with CreateProcessAsUser.

OmChetu commented 6 years ago

I am getting this error "StartProcessAsCurrentUser: CreateProcessAsUser failed. Error Code -740 6/20/2018 11:42:52 PM" what is the solution of this ?

AndrewSav commented 6 years ago

Two thoughts here: