It is currently Tue Oct 24, 2017 3:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Is administrator account
PostPosted: Thu Apr 20, 2017 6:00 pm 
Offline
User
User

Joined: Fri Feb 05, 2016 10:11 am
Posts: 68
Is there any function to know if the windows-user-account is local or administrator?

thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 6:32 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 2451
Location: Boston, MA
IsUserAnAdmin_()

_________________
Intelligence is like underwear. It is important to have it, but showing it to the wrong people has the tendency to make them feel uncomfortable. ~ Angela Johnson


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 6:38 pm 
Offline
User
User

Joined: Fri Feb 05, 2016 10:11 am
Posts: 68
Thanks, but it return 0, and i AM administrator!!


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 9:45 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1008
Location: Germany
Set compiler option 'Request Administrator mode...'
Code:
r1 = IsUserAnAdmin_()
If r1
  MessageRequester("Info", "Is Admin")
Else
  MessageRequester("Info", "Is not Admin")
EndIf

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 9:50 pm 
Offline
User
User

Joined: Fri Feb 05, 2016 10:11 am
Posts: 68
Much thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 10:14 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 2451
Location: Boston, MA
Sorry, I did not require
[x] Request Administrator mode for Windows Vista and above.
on Windows 10. But, I have UAC off.

_________________
Intelligence is like underwear. It is important to have it, but showing it to the wrong people has the tendency to make them feel uncomfortable. ~ Angela Johnson


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 10:21 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1008
Location: Germany
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

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 10:25 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 2451
Location: Boston, MA
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. :evil:

_________________
Intelligence is like underwear. It is important to have it, but showing it to the wrong people has the tendency to make them feel uncomfortable. ~ Angela Johnson


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 10:53 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1008
Location: Germany
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 :wink:

_________________
My Projects OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer /
PB v3.30 / v5.60 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Thu Apr 20, 2017 11:31 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 2451
Location: Boston, MA
Haha, not being loud at you. I was trashing UAC, the thief of clicks. :!:

_________________
Intelligence is like underwear. It is important to have it, but showing it to the wrong people has the tendency to make them feel uncomfortable. ~ Angela Johnson


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Fri Apr 21, 2017 12:34 pm 
Offline
User
User

Joined: Thu Mar 02, 2017 11:15 pm
Posts: 13
Location: Barcelona
mk-soft wrote:
Set compiler option 'Request Administrator mode...'

That totally defeats the purpose. Use IsUserAdmin_() instead.

_________________
Please excuse my English; I learned it from a book.


Top
 Profile  
Reply with quote  
 Post subject: Re: Is administrator account
PostPosted: Fri Apr 21, 2017 1:16 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5672
Location: Wales, UK
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.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: ricardo and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye