Link to home
Start Free TrialLog in
Avatar of plumothy
plumothyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Delphi: How to Tell if Given UserName is Windows Administrator

In Delphi (XE4), is it possible to check if a given user name is a Windows Administrator?

(I have found plenty of examples of testing the current user but I need to be able to check any given user name, whether the current user or not.)
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of plumothy

ASKER

My apologies - in attempting to answer your question, I have realised that I do not need to do any checks on the given user name (because Windows will do it anyway before using it).

So, I shouldn't have even asked the question in the first place!