I am trying to P/invoke some method from my C# code.
The main process is running in user/system context, but I have some unsafe external code running (using P/Invoke) which might be insecure.
Is there a way to run those method in low integrity mode?
I am trying to P/invoke some method from my C# code.
The main process is running in user/system context, but I have some unsafe external code running (using P/Invoke) which might be insecure.
Is there a way to run those method in low integrity mode?
Run that code in a different process. You can't use Process.Start(), since that will take the privileges of the current process.
A suggestion is done in this post how to circumvent the Process.Start() issue: How to start a new process without administrator privileges from a process with administrator privileges?