Implement RegGetKeySecurity.

svn path=/trunk/; revision=10837
This commit is contained in:
Eric Kohl 2004-09-13 08:51:40 +00:00
parent b1958574f7
commit 14f00f3aeb

View file

@ -1,4 +1,4 @@
/* $Id: reg.c,v 1.54 2004/08/15 17:03:14 chorns Exp $
/* $Id: reg.c,v 1.55 2004/09/13 08:51:40 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -1507,7 +1507,7 @@ RegFlushKey(HKEY hKey)
/************************************************************************
* RegGetKeySecurity
*
* @unimplemented
* @implemented
*/
LONG STDCALL
RegGetKeySecurity(HKEY hKey,
@ -1515,12 +1515,11 @@ RegGetKeySecurity (HKEY hKey,
PSECURITY_DESCRIPTOR pSecurityDescriptor,
LPDWORD lpcbSecurityDescriptor)
{
#if 0
HKEY KeyHandle;
HANDLE KeyHandle;
LONG ErrorCode;
NTSTATUS Status;
if (hKey = HKEY_PERFORMANCE_DATA)
if (hKey == HKEY_PERFORMANCE_DATA)
{
return ERROR_INVALID_HANDLE;
}
@ -1534,7 +1533,11 @@ RegGetKeySecurity (HKEY hKey,
return ErrorCode;
}
Status = NtQuerySecurityObject ()
Status = NtQuerySecurityObject(hKey,
SecurityInformation,
pSecurityDescriptor,
*lpcbSecurityDescriptor,
lpcbSecurityDescriptor);
if (!NT_SUCCESS(Status))
{
ErrorCode = RtlNtStatusToDosError(Status);
@ -1543,11 +1546,6 @@ RegGetKeySecurity (HKEY hKey,
}
return ERROR_SUCCESS;
#endif
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return ERROR_CALL_NOT_IMPLEMENTED;
}