migrate substitution keywords to SVN
[reactos.git] / reactos / lib / rtl / luid.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * PURPOSE: Locally unique identifier (LUID) helper functions
6 * FILE: lib/rtl/luid.c
7 * PROGRAMER: Eric Kohl <ekohl@zr-online.de>
8 * REVISION HISTORY:
9 * 15/04/2000: Created
10 */
11
12 /* INCLUDES *****************************************************************/
13
14 #include <ddk/ntddk.h>
15
16 #define NDEBUG
17 #include <debug.h>
18
19 /* FUNCTIONS *****************************************************************/
20
21 VOID STDCALL
22 RtlCopyLuid(PLUID LuidDest,
23 PLUID LuidSrc)
24 {
25 LuidDest->LowPart = LuidSrc->LowPart;
26 LuidDest->HighPart = LuidSrc->HighPart;
27 }
28
29
30 /*
31 * @implemented
32 */
33 VOID STDCALL
34 RtlCopyLuidAndAttributesArray(ULONG Count,
35 PLUID_AND_ATTRIBUTES Src,
36 PLUID_AND_ATTRIBUTES Dest)
37 {
38 ULONG i;
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 /*
50 * @implemented
51 */
52 BOOLEAN STDCALL
53 RtlEqualLuid(PLUID Luid1,
54 PLUID Luid2)
55 {
56 return (Luid1->LowPart == Luid2->LowPart &&
57 Luid1->HighPart == Luid2->HighPart);
58 }
59
60 /* EOF */