Sandboxing DLL Code
I was wondering if it's possible to sandbox dll functions. I'm making a game with mod support. I'm using libloading to load external functions from user provided dll's. I want to ensure some safety since dll's could be doing just about anything without the user's knowledge. Is it possible to run a function wrapped in some sort of sandbox to prevent os commands like reading and writting to files after the dll has been loaded, or is this something that would somehow have to be enforced on the modder's side?