[RTL]
[reactos.git] / reactos / lib / rtl / luid.c
1 /* COPYRIGHT: See COPYING in the top level directory
2 * PROJECT: ReactOS system libraries
3 * PURPOSE: Locally unique identifier (LUID) helper functions
4 * FILE: lib/rtl/luid.c
5 * PROGRAMER: Eric Kohl
6 */
7
8 /* INCLUDES *****************************************************************/
9
10 #include <rtl.h>
11
12 #define NDEBUG
13 #include <debug.h>
14
15 /* FUNCTIONS *****************************************************************/
16
17 VOID NTAPI
18 RtlCopyLuid(PLUID LuidDest,
19 PLUID LuidSrc)
20 {
21 PAGED_CODE_RTL();
22
23 LuidDest->LowPart = LuidSrc->LowPart;
24 LuidDest->HighPart = LuidSrc->HighPart;
25 }
26
27
28 /*
29 * @implemented
30 */
31 VOID NTAPI
32 RtlCopyLuidAndAttributesArray(ULONG Count,
33 PLUID_AND_ATTRIBUTES Src,
34 PLUID_AND_ATTRIBUTES Dest)
35 {
36 ULONG i;
37
38 PAGED_CODE_RTL();
39
40 for (i = 0; i < Count; i++)
41 {
42 RtlCopyMemory(&Dest[i],
43 &Src[i],
44 sizeof(LUID_AND_ATTRIBUTES));
45 }
46 }
47
48
49 #undef RtlEqualLuid
50 /*
51 * @implemented
52 */
53 BOOLEAN NTAPI
54 RtlEqualLuid(PLUID Luid1,
55 PLUID Luid2)
56 {
57 PAGED_CODE_RTL();
58
59 return (Luid1->LowPart == Luid2->LowPart &&
60 Luid1->HighPart == Luid2->HighPart);
61 }
62
63 /* EOF */