Implemented AreAnyAccessesGranted.

This commit is contained in:
William Lahti 2004-05-25 00:22:42 +00:00 committed by Alexandre Julliard
parent b6dae78bac
commit d5a31871cd
2 changed files with 21 additions and 1 deletions

View File

@ -15,7 +15,7 @@
@ stdcall AllocateAndInitializeSid(ptr long long long long long long long long long ptr)
@ stdcall AllocateLocallyUniqueId(ptr)
@ stub AreAllAccessesGranted
@ stub AreAnyAccessesGranted
@ stdcall AreAnyAccessesGranted(long long)
@ stdcall BackupEventLogA (long str)
@ stdcall BackupEventLogW (long wstr)
@ stdcall BuildTrusteeWithSidA(ptr ptr)

View File

@ -1546,6 +1546,26 @@ DWORD WINAPI SetNamedSecurityInfoA(LPSTR pObjectName,
return ERROR_CALL_NOT_IMPLEMENTED;
}
/******************************************************************************
* AreAnyAccessesGranted [ADVAPI32.@]
*
* Determines whether or not any of a set of specified access permissions have
* been granted or not.
*
* PARAMS
* GrantedAccess [I] The permissions that have been granted.
* DesiredAccess [I] The permissions that you want to have.
*
* RETURNS
* Nonzero if any of the permissions have been granted, zero if none of the
* permissions have been granted.
*/
BOOL WINAPI AreAnyAccessesGranted( DWORD GrantedAccess, DWORD DesiredAccess )
{
return (GrantedAccess & DesiredAccess) != 0;
}
/******************************************************************************
* SetNamedSecurityInfoW [ADVAPI32.@]
*/