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 12:19, local time: 2024/8/25 05:04,
3.137.160.79: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://piclist.com/tecHREF/os/win/api/win32/func/src/f00_14.htm"> AccessCheck</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.