Page 1 of 1
Is administrator account
Posted: Thu Apr 20, 2017 6:00 pm
by boyoss
Is there any function to know if the windows-user-account is local or administrator?
thanks
Re: Is administrator account
Posted: Thu Apr 20, 2017 6:32 pm
by skywalk
IsUserAnAdmin_()
Re: Is administrator account
Posted: Thu Apr 20, 2017 6:38 pm
by boyoss
Thanks, but it return 0, and i AM administrator!!
Re: Is administrator account
Posted: Thu Apr 20, 2017 9:45 pm
by mk-soft
Set compiler option 'Request Administrator mode...'
Code: Select all
r1 = IsUserAnAdmin_()
If r1
MessageRequester("Info", "Is Admin")
Else
MessageRequester("Info", "Is not Admin")
EndIf
Re: Is administrator account
Posted: Thu Apr 20, 2017 9:50 pm
by boyoss
Much thanks
Re: Is administrator account
Posted: Thu Apr 20, 2017 10:14 pm
by skywalk
Sorry, I did not require
[x] Request Administrator mode for Windows Vista and above.
on Windows 10. But, I have UAC off.
Re: Is administrator account
Posted: Thu Apr 20, 2017 10:21 pm
by mk-soft
skywalk wrote:Sorry, I did not require
[x] Request Administrator mode for Windows Vista and above.
on Windows 10. But, I have UAC off.
Not good idea the UAC switch off
Re: Is administrator account
Posted: Thu Apr 20, 2017 10:25 pm
by skywalk
I do use other means of protection.
Constant UAC prompts are no protection if I pick up my computer and throw it against a wall.
Re: Is administrator account
Posted: Thu Apr 20, 2017 10:53 pm
by mk-soft
Why be loud ...
If you use a different protection, that is good
But as a first protection, I consider UAC to be useful. If not as last protection.
So everyone has his opinion
Re: Is administrator account
Posted: Thu Apr 20, 2017 11:31 pm
by skywalk
Haha, not being loud at you. I was trashing UAC, the thief of clicks.
Re: Is administrator account
Posted: Fri Apr 21, 2017 12:34 pm
by Manuel
mk-soft wrote:Set compiler option 'Request Administrator mode...'
That totally defeats the purpose. Use IsUserAdmin_() instead.
Re: Is administrator account
Posted: Fri Apr 21, 2017 1:16 pm
by IdeasVacuum
UAC is a nightmare! I have wasted a countless number of hours helping CAD-CAM customers whose PC grinds to a standstill with UAC deployed.