CreateProcessAsUser
CreateProcessAsUser copied to clipboard
Better exception handling
I've been using this code and the fact that it always throws an instance of the base Exception class makes it rather annoying to handle. A better solution would be creating a more specialized class derived from Exception that can be caught more easily without catching anything else that we don't want to catch.