3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * PURPOSE: Locally unique identifier (LUID) helper functions
7 * PROGRAMER: Eric Kohl <ekohl@zr-online.de>
12 /* INCLUDES *****************************************************************/
14 #include <ddk/ntddk.h>
15 #include <ntdll/rtl.h>
20 /* FUNCTIONS *****************************************************************/
23 RtlCopyLuid(PLUID LuidDest
,
28 LuidDest
->LowPart
= LuidSrc
->LowPart
;
29 LuidDest
->HighPart
= LuidSrc
->HighPart
;
37 RtlCopyLuidAndAttributesArray(ULONG Count
,
38 PLUID_AND_ATTRIBUTES Src
,
39 PLUID_AND_ATTRIBUTES Dest
)
45 for (i
= 0; i
< Count
; i
++)
47 RtlCopyMemory(&Dest
[i
],
49 sizeof(LUID_AND_ATTRIBUTES
));
58 RtlEqualLuid(PLUID Luid1
,
63 return (Luid1
->LowPart
== Luid2
->LowPart
&&
64 Luid1
->HighPart
== Luid2
->HighPart
);