mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 07:00:19 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
41 lines
928 B
C
41 lines
928 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: lib/advapi32/token/privilege.c
|
|
* PURPOSE: advapi32.dll token's privilege handling
|
|
* PROGRAMMER: E.Aliberti
|
|
* UPDATE HISTORY:
|
|
* 20010317 ea stubs
|
|
*/
|
|
|
|
#include <advapi32.h>
|
|
|
|
|
|
/**********************************************************************
|
|
* PrivilegeCheck EXPORTED
|
|
*
|
|
* @implemented
|
|
*/
|
|
BOOL WINAPI
|
|
PrivilegeCheck(HANDLE ClientToken,
|
|
PPRIVILEGE_SET RequiredPrivileges,
|
|
LPBOOL pfResult)
|
|
{
|
|
BOOLEAN Result;
|
|
NTSTATUS Status;
|
|
|
|
Status = NtPrivilegeCheck(ClientToken,
|
|
RequiredPrivileges,
|
|
&Result);
|
|
if (!NT_SUCCESS(Status))
|
|
{
|
|
SetLastError(RtlNtStatusToDosError(Status));
|
|
return FALSE;
|
|
}
|
|
|
|
*pfResult = (BOOL)Result;
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
/* EOF */
|