murrayju / CreateProcessAsUser

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

Better exception handling #31

Closed mmiszczyk closed 10 months ago

mmiszczyk commented 4 years ago

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.