2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/advapi32/sec/rtlsec.c
5 * PURPOSE: Registry functions
6 * PROGRAMMER: Ariadne ( ariadne@xs4all.nl)
12 #undef WIN32_LEAN_AND_MEAN
23 UNICODE_STRING SubKeyString
;
25 SubKeyString
.Buffer
= lpSubKey
;
26 SubKeyString
.Length
= wcslen(lpSubKey
);
27 SubKeyString
.MaximumLength
= SubKeyString
.Length
;
29 ObjectAttributes
.RootDirectory
= hKey
;
30 ObjectAttributes
.ObjectName
= &SubKeyString
;
31 ObjectAttributes
.Attributes
= OBJ_CASE_INSENSITIVE
;
37 if ( !NT_SUCCESS(errCode
) ) {
38 SetLastError(RtlNtStatusToDosError(errCode
));