Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenluid.c
Go to the documentation of this file.
00001 /* COPYRIGHT: See COPYING in the top level directory 00002 * PROJECT: ReactOS system libraries 00003 * PURPOSE: Locally unique identifier (LUID) helper functions 00004 * FILE: lib/rtl/luid.c 00005 * PROGRAMER: Eric Kohl 00006 */ 00007 00008 /* INCLUDES *****************************************************************/ 00009 00010 #include <rtl.h> 00011 00012 #define NDEBUG 00013 #include <debug.h> 00014 00015 /* FUNCTIONS *****************************************************************/ 00016 00017 VOID NTAPI 00018 RtlCopyLuid(PLUID LuidDest, 00019 PLUID LuidSrc) 00020 { 00021 PAGED_CODE_RTL(); 00022 00023 LuidDest->LowPart = LuidSrc->LowPart; 00024 LuidDest->HighPart = LuidSrc->HighPart; 00025 } 00026 00027 00028 /* 00029 * @implemented 00030 */ 00031 VOID NTAPI 00032 RtlCopyLuidAndAttributesArray(ULONG Count, 00033 PLUID_AND_ATTRIBUTES Src, 00034 PLUID_AND_ATTRIBUTES Dest) 00035 { 00036 ULONG i; 00037 00038 PAGED_CODE_RTL(); 00039 00040 for (i = 0; i < Count; i++) 00041 { 00042 RtlCopyMemory(&Dest[i], 00043 &Src[i], 00044 sizeof(LUID_AND_ATTRIBUTES)); 00045 } 00046 } 00047 00048 00049 #undef RtlEqualLuid 00050 /* 00051 * @implemented 00052 */ 00053 BOOLEAN NTAPI 00054 RtlEqualLuid(PLUID Luid1, 00055 PLUID Luid2) 00056 { 00057 PAGED_CODE_RTL(); 00058 00059 return (Luid1->LowPart == Luid2->LowPart && 00060 Luid1->HighPart == Luid2->HighPart); 00061 } 00062 00063 /* EOF */ Generated on Sat May 26 2012 04:35:22 for ReactOS by
1.7.6.1
|