mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:02:59 +00:00
[RTL][NTDLL_APITEST] Implement RtlRemovePrivileges (#4614)
Vista+ API, compile-time guarded. Add tests for it.
This commit is contained in:
parent
967f5b9898
commit
badd97043f
6 changed files with 231 additions and 1 deletions
|
@ -1568,6 +1568,20 @@ RtlReleasePrivilege(
|
|||
_In_ PVOID ReturnedState
|
||||
);
|
||||
|
||||
#if (NTDDI_VERSION >= NTDDI_VISTA)
|
||||
|
||||
NTSYSAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
RtlRemovePrivileges(
|
||||
_In_ HANDLE TokenHandle,
|
||||
_In_reads_opt_(PrivilegeCount) _When_(PrivilegeCount != 0, _Notnull_)
|
||||
PULONG PrivilegesToKeep,
|
||||
_In_ ULONG PrivilegeCount
|
||||
);
|
||||
|
||||
#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
|
||||
|
||||
_IRQL_requires_max_(APC_LEVEL)
|
||||
NTSYSAPI
|
||||
NTSTATUS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue