3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * PURPOSE: Locally unique identifier (LUID) helper functions
6 * FILE: lib/ntdll/rtl/luid.c
7 * PROGRAMER: Eric Kohl <ekohl@zr-online.de>
12 /* INCLUDES *****************************************************************/
14 #include <ddk/ntddk.h>
17 /* FUNCTIONS *****************************************************************/
20 RtlCopyLuid(PLUID LuidDest,
23 LuidDest->LowPart = LuidSrc->LowPart;
24 LuidDest->HighPart = LuidSrc->HighPart;
32 RtlCopyLuidAndAttributesArray(ULONG Count,
33 PLUID_AND_ATTRIBUTES Src,
34 PLUID_AND_ATTRIBUTES Dest)
38 for (i = 0; i < Count; i++)
40 RtlCopyMemory(&Dest[i],
42 sizeof(LUID_AND_ATTRIBUTES));
51 RtlEqualLuid(PLUID Luid1,
54 return (Luid1->LowPart == Luid2->LowPart &&
55 Luid1->HighPart == Luid2->HighPart);