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

Returns true if the user has administrative access; otherwise false.

JwCheckAdministratorAccess checks if the user has administrative rights. 

 

This function works also in Windows Vista and later if UAC is enabled. If the current process is not elevated the return value is false even if the token contains the administrators group (which is disabled then). This function detects a group membership in the administrator group which means that the user don't need to be in the administrators group directly instead a group can be a member of the administrators group.

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!