Location: Symbol Reference > Functions > JwIsMemberOfAdministratorsGroup Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwIsMemberOfAdministratorsGroup Function
Pascal
function JwIsMemberOfAdministratorsGroup: boolean;

Returns true if the user is a member of the administrators group; otherwise false.

JwIsMemberOfAdministratorsGroup checks if the user is a direct member of the Administrators group and this group is enabled for access checking. Therefore if this group has the flag use-for-deny-only the returned value is false. This usually happens if the user is an Administrator in Windows Vista with activated UAC. 

 

This function uses the Windows API function CheckTokenMembership and thus only checks whether the user is a member of the administrator group. However it does not check if the user belongs to a group that is a member of the administrators group. 

If you just intend to check for any administrator use JwCheckAdministratorAccess instead.

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!