This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Apr 18 04:32, Charles Wilson wrote:So, I'm still not checking that the uid specified is a member of the local Administrators group.
As for an account being Administrator, and apart from special accounts like SYSTEM or LOCAL_SERVICE...
What about just checking the value of PUSER_INFO_3->usri3_priv? It may contain the value USER_PRIV_ADMIN. That should be sufficient, afaics.
-- Chuck
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |