The AccessCheck function is used by a server application to check a client’s access to an object against the access control associated with the object.
BOOL AccessCheck(
PSECURITY_DESCRIPTOR pSecurityDescriptor, |
// pointer to security descriptor |
HANDLE ClientToken, |
// handle to client access token |
DWORD DesiredAccess, |
// access mask to request |
PGENERIC_MAPPING GenericMapping, |
// address of generic-mapping structure |
PPRIVILEGE_SET PrivilegeSet, |
// address of privilege-set structure |
LPDWORD PrivilegeSetLength, |
// size of privilege-set structure |
LPDWORD GrantedAccess, |
// address of granted access mask |
LPBOOL AccessStatus |
// address of flag indicating whether access granted |
); |
This handle must be obtained from a communications session layer ¾ for instance, a named pipe ¾ to prevent possible security policy violations.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The AccessCheck function compares the specified security descriptor with the specified access token and indicates, in the AccessStatus parameter, whether access is granted or denied. If access is granted, the requested access mask becomes the object’s granted access mask.
Only the discretionary access-control list is examined during an access check.
AccessCheckAndAuditAlarm, AreAllAccessesGranted, AreAnyAccessesGranted, GENERIC_MAPPING, MapGenericMask, PrivilegeCheck, PRIVILEGE_SET, SECURITY_DESCRIPTOR
file: /Techref/os/win/api/win32/func/src/f00_14.htm, 6KB, , updated: 2000/4/7 11:19, local time: 2024/12/27 02:25,
3.133.147.193:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f00_14.htm"> AccessCheck</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.