-/* $Id: sd.c,v 1.8 2002/09/07 15:12:40 chorns Exp $
+/* $Id: sd.c,v 1.9 2002/09/08 10:23:06 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
-#define NTOS_USER_MODE
-#include <ntos.h>
+#include <ddk/ntddk.h>
-#define NDEBUG
-#include <debug.h>
+#include <ntdll/ntdll.h>
/* FUNCTIONS ***************************************************************/
ULONG STDCALL
RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor)
{
- PISID Owner;
- PISID Group;
+ PSID Owner;
+ PSID Group;
ULONG Length;
PACL Dacl;
PACL Sacl;
if (SecurityDescriptor->Owner != NULL)
{
- Owner = (PISID)SecurityDescriptor->Owner;
+ Owner = SecurityDescriptor->Owner;
if (SecurityDescriptor->Control & SE_SELF_RELATIVE)
{
- Owner = (PISID)((ULONG)Owner +
+ Owner = (PSID)((ULONG)Owner +
(ULONG)SecurityDescriptor);
}
Length = Length + ((sizeof(SID) + (Owner->SubAuthorityCount - 1) *
Group = SecurityDescriptor->Group;
if (SecurityDescriptor->Control & SE_SELF_RELATIVE)
{
- Group = (PISID)((ULONG)Group + (ULONG)SecurityDescriptor);
+ Group = (PSID)((ULONG)Group + (ULONG)SecurityDescriptor);
}
Length = Length + ((sizeof(SID) + (Group->SubAuthorityCount - 1) *
sizeof(ULONG) + 3) & 0xfc);