If you don't have an error handler (and this applies to every part of your program) and an error occurs, the user will know about it... because they will see an error message (which might not make sense to them), then your program will simply exit.

With an error handler you can choose whether or not a message is shown, what the message contains (including the Admin text if you like), and what happens afterwards.

It generally isn't a good idea to deal with known issues with an error handler (using pre-emptive checks is normally the right way), but things like IsUserAnAdmin can have unexpected behaviour - I think somebody found recently that it returns True in some cases where it shouldn't have.


Those registry keys look right to me, but I haven't checked.