implement MakeAbsoluteSD2 by forwarding to RtlSelfRelativeToAbsoluteSD2
Modified: trunk/reactos/include/ndk/rtlfuncs.h
Modified: trunk/reactos/lib/advapi32/advapi32.def
Modified: trunk/reactos/lib/advapi32/sec/sec.c
Modified: trunk/reactos/lib/ntdll/def/ntdll.def
Modified: trunk/reactos/lib/rtl/sd.c
_____
Modified: trunk/reactos/include/ndk/rtlfuncs.h
--- trunk/reactos/include/ndk/rtlfuncs.h 2005-10-23 18:03:08 UTC
(rev 18717)
+++ trunk/reactos/include/ndk/rtlfuncs.h 2005-10-23 18:23:57 UTC
(rev 18718)
@@ -542,6 +542,14 @@
NTSYSAPI
NTSTATUS
NTAPI
+RtlSelfRelativeToAbsoluteSD2(
+ IN OUT PSECURITY_DESCRIPTOR SelfRelativeSD,
+ OUT PULONG BufferSize
+);
+
+NTSYSAPI
+NTSTATUS
+NTAPI
RtlSetControlSecurityDescriptor(
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
IN SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
_____
Modified: trunk/reactos/lib/advapi32/advapi32.def
--- trunk/reactos/lib/advapi32/advapi32.def 2005-10-23 18:03:08 UTC
(rev 18717)
+++ trunk/reactos/lib/advapi32/advapi32.def 2005-10-23 18:23:57 UTC
(rev 18718)
@@ -413,7 +413,7 @@
;MSChapSrvChangePassword
;MSChapSrvChangePassword2
MakeAbsoluteSD@44
-;MakeAbsoluteSD2
+MakeAbsoluteSD2@8
MakeSelfRelativeSD@12
MapGenericMask(a)8=NTDLL.RtlMapGenericMask
NotifyBootConfigStatus@4
_____
Modified: trunk/reactos/lib/advapi32/sec/sec.c
--- trunk/reactos/lib/advapi32/sec/sec.c 2005-10-23 18:03:08 UTC
(rev 18717)
+++ trunk/reactos/lib/advapi32/sec/sec.c 2005-10-23 18:23:57 UTC
(rev 18718)
@@ -273,6 +273,28 @@
*/
BOOL
STDCALL
+MakeAbsoluteSD2(IN OUT PSECURITY_DESCRIPTOR
pSelfRelativeSecurityDescriptor,
+ OUT LPDWORD lpdwBufferSize)
+{
+ NTSTATUS Status;
+
+ Status =
RtlSelfRelativeToAbsoluteSD2(pSelfRelativeSecurityDescriptor,
+ lpdwBufferSize);
+ if (!NT_SUCCESS(Status))
+ {
+ SetLastError (RtlNtStatusToDosError (Status));
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
MakeSelfRelativeSD (
PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
_____
Modified: trunk/reactos/lib/ntdll/def/ntdll.def
--- trunk/reactos/lib/ntdll/def/ntdll.def 2005-10-23 18:03:08 UTC
(rev 18717)
+++ trunk/reactos/lib/ntdll/def/ntdll.def 2005-10-23 18:23:57 UTC
(rev 18718)
@@ -606,6 +606,7 @@
RtlRunEncodeUnicodeString@8
RtlSecondsSince1970ToTime@8
RtlSecondsSince1980ToTime@8
+RtlSelfRelativeToAbsoluteSD2@8
RtlSelfRelativeToAbsoluteSD@44
RtlSetAllBits@4
RtlSetAttributesSecurityDescriptor@12
_____
Modified: trunk/reactos/lib/rtl/sd.c
--- trunk/reactos/lib/rtl/sd.c 2005-10-23 18:03:08 UTC (rev 18717)
+++ trunk/reactos/lib/rtl/sd.c 2005-10-23 18:23:57 UTC (rev 18718)
@@ -729,7 +729,7 @@
* @unimplemented
*/
NTSTATUS NTAPI
-RtlSelfRelativeToAbsoluteSD2(PISECURITY_DESCRIPTOR_RELATIVE
SelfRelativeSecurityDescriptor,
+RtlSelfRelativeToAbsoluteSD2(PISECURITY_DESCRIPTOR
SelfRelativeSecurityDescriptor,
PULONG BufferSize)
{
UNIMPLEMENTED;
Show replies by date