Implement QuerySecurityAccessMask

svn path=/trunk/; revision=27712
This commit is contained in:
Thomas Bluemel 2007-07-18 09:47:05 +00:00
parent c79612b989
commit 1a9fa20283
3 changed files with 26 additions and 0 deletions

View file

@ -451,6 +451,7 @@ PrivilegedServiceAuditAlarmW@20
;QueryAllTracesA
;QueryAllTracesW
QueryRecoveryAgentsOnEncryptedFile@8
QuerySecurityAccessMask@8
QueryServiceConfig2A@20
QueryServiceConfig2W@20
QueryServiceConfigA@16

View file

@ -465,6 +465,28 @@ SetSecurityDescriptorSacl (
}
/*
* @implemented
*/
VOID
WINAPI
QuerySecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
OUT LPDWORD DesiredAccess)
{
*DesiredAccess = 0;
if (SecurityInformation & (OWNER_SECURITY_INFORMATION |
GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION))
{
*DesiredAccess |= READ_CONTROL;
}
if (SecurityInformation & SACL_SECURITY_INFORMATION)
{
*DesiredAccess |= ACCESS_SYSTEM_SECURITY;
}
}
/*
* @unimplemented
*/

View file

@ -1841,6 +1841,9 @@ BOOL WINAPI QueryMemoryResourceNotification(HANDLE,PBOOL);
#endif
BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
BOOL WINAPI QueryPerformanceFrequency(PLARGE_INTEGER);
#if (_WIN32_WINNT >= 0x0600)
VOID WINAPI QuerySecurityAccessMask(SECURITY_INFORMATION,LPDWORD);
#endif
DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
#if (_WIN32_WINNT >= 0x0500)
BOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE,PVOID,ULONG);