Location: Symbol Reference > Classes > TJwSecureRegistryKey Class > TJwSecureRegistryKey Methods > AccessCheck Method > TJwSecureRegistryKey.AccessCheck Method (TJwAccessMask, TJwSecurityToken)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecureRegistryKey.AccessCheck Method (TJwAccessMask, TJwSecurityToken)
Pascal
function AccessCheck(DesiredAccess: TJwAccessMask = Cardinal(-1); const ClientToken: TJwSecurityToken = nil): boolean; override; overload;
Parameters 
Description 
DesiredAccess: TJwAccessMask = Cardinal(-1) 
defines which access rights are to be checked. If set to High(Cardinal) the access rights given in the constructor are used. 

AccessCheck checks whether the user has access to the the file of the instance or not.

Exceptions 
Description 
This exception will be raised if DesiredAccess contains the MAXIMUM_ALLOWED access right. If you want to check for granted access rights call the other method and read parameter GrantedAccess. 
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!