|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| No
| Win32s
| No
| Import Library
| advapi32.lib
| Header File
| winbase.h
| Unicode
| No
| Platform Notes
| None
|
|
|
AreAnyAccessesGranted
The AreAnyAccessesGranted function tests whether any of a set of requested access rights has been
granted. The access rights are represented as bit flags in a 32-bit access mask.
BOOL AreAnyAccessesGranted(
DWORD GrantedAccess,
| // access mask for granted access rights
| DWORD DesiredAccess
| // access mask for access rights requested
| );
|
|
Parameters
GrantedAccess
Specifies the granted access mask.
DesiredAccess
Specifies the access mask to be requested. This mask must have been mapped
from generic to specific and standard access rights, usually by calling the MapGenericMask function.
Return Values
If any of the requested access rights have been granted, the return value is
nonzero.
If none of the requested access rights have been granted, the return value is
zero.
Remarks
The AreAnyAccessesGranted function is often used by a server application to check the access rights of
a client attempting to gain access to an object. When any of the bits set in
the DesiredAccess parameter match the bits set in the GrantedAccess parameter, at least one of the requested access rights has been granted.
See Also
AccessCheck, AreAllAccessesGranted, MapGenericMask
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|