Skip to content

Latest commit

 

History

History
101 lines (73 loc) · 3.39 KB

nf-securitybaseapi-areallaccessesgranted.md

File metadata and controls

101 lines (73 loc) · 3.39 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:securitybaseapi.AreAllAccessesGranted
AreAllAccessesGranted function (securitybaseapi.h)
Checks whether a set of requested access rights has been granted. The access rights are represented as bit flags in an access mask.
AreAllAccessesGranted
AreAllAccessesGranted function [Security]
_win32_areallaccessesgranted
security.areallaccessesgranted
securitybaseapi/AreAllAccessesGranted
security\areallaccessesgranted.htm
security
91349693-8667-49dd-a813-657497b7d467
12/05/2018
AreAllAccessesGranted, AreAllAccessesGranted function [Security], _win32_areallaccessesgranted, security.areallaccessesgranted, securitybaseapi/AreAllAccessesGranted
securitybaseapi.h
Windows.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Advapi32.lib
Advapi32.dll
Windows
19H1
AreAllAccessesGranted
securitybaseapi/AreAllAccessesGranted
c++
APIRef
kbSyntax
DllExport
Advapi32.dll
API-MS-Win-DownLevel-AdvApi32-l1-1-0.dll
KernelBase.dll
API-MS-Win-DownLevel-AdvApi32-l1-1-1.dll
API-MS-Win-Security-base-l1-1-0.dll
API-MS-Win-Security-base-l1-2-0.dll
MinKernelBase.dll
API-MS-Win-Security-Base-L1-2-1.dll
AreAllAccessesGranted

AreAllAccessesGranted function

-description

The AreAllAccessesGranted function checks whether a set of requested access rights has been granted. The access rights are represented as bit flags in an access mask.

-parameters

-param GrantedAccess [in]

An access mask that specifies the access rights that have been granted.

-param DesiredAccess [in]

An access mask that specifies the access rights that have been requested. This mask must have been mapped from generic to specific and standard access rights, usually by calling the MapGenericMask function.

-returns

If all requested access rights have been granted, the return value is nonzero.

If not all requested access rights have been granted, the return value is zero.

-remarks

The AreAllAccessesGranted function is commonly used by a server application to check the access rights of a client attempting to gain access to an object. When the bits set in the DesiredAccess parameter match the bits set in the GrantedAccess parameter, all requested rights have been granted.

-see-also

AccessCheck

AreAnyAccessesGranted

Client/Server Access Control Functions

Client/Server Access Control Overview

MapGenericMask