mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[ADVAPI32]
* Update GetKernelObjectSecurity(). CORE-8540 svn path=/trunk/; revision=64987
This commit is contained in:
parent
ab0736d95a
commit
9e3669b4fb
1 changed files with 12 additions and 22 deletions
|
@ -854,31 +854,21 @@ GetLengthSid(PSID pSid)
|
||||||
return (DWORD)RtlLengthSid(pSid);
|
return (DWORD)RtlLengthSid(pSid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/******************************************************************************
|
||||||
* @implemented
|
* GetKernelObjectSecurity [ADVAPI32.@]
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL WINAPI GetKernelObjectSecurity(
|
||||||
WINAPI
|
HANDLE Handle,
|
||||||
GetKernelObjectSecurity(HANDLE Handle,
|
|
||||||
SECURITY_INFORMATION RequestedInformation,
|
SECURITY_INFORMATION RequestedInformation,
|
||||||
PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
||||||
DWORD nLength,
|
DWORD nLength,
|
||||||
LPDWORD lpnLengthNeeded )
|
LPDWORD lpnLengthNeeded )
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
TRACE("(%p,0x%08x,%p,0x%08x,%p)\n", Handle, RequestedInformation,
|
||||||
|
pSecurityDescriptor, nLength, lpnLengthNeeded);
|
||||||
|
|
||||||
Status = NtQuerySecurityObject(Handle,
|
return set_ntstatus( NtQuerySecurityObject(Handle, RequestedInformation, pSecurityDescriptor,
|
||||||
RequestedInformation,
|
nLength, lpnLengthNeeded ));
|
||||||
pSecurityDescriptor,
|
|
||||||
nLength,
|
|
||||||
lpnLengthNeeded);
|
|
||||||
if (!NT_SUCCESS(Status))
|
|
||||||
{
|
|
||||||
SetLastError(RtlNtStatusToDosError(Status));
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue