Good day!
I would like to know if using WinAPI or .NET is possible (hardly) to restrict the running process access to the computer's file system (completely prohibit changes or only allow changes to be made in certain directories)?
If there is such an opportunity, please suggest how to use it. I will be grateful.
PS I know that in Linux there is a setrlimit system call, alas, I did not find an analogue for Windows ...
CreateRestrictedTokenin theory. You can start the process throughCreateProcessAsUserand pass the token there. - VladD