10-06-2023, 02:58 AM
(This post was last modified: 10-06-2023, 03:00 AM by SpriggsySpriggs.)
It shouldn't do that. I've never seen it constantly loop on just that alone because it should report zero for normal user and nonzero for admin. If you cancel the UAC prompt, it is just going to close out anyways because the next statement is `System`. I've never had any issues using it, though. It (`SelfElevate`) is a big part of my registry library. But for future reference, leave the function as I provided. It was written this way for a reason.
Tread on those who tread on you