mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:16:04 +00:00
Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
This commit is contained in:
parent
a28e798006
commit
c424146e2c
20602 changed files with 0 additions and 1140137 deletions
63
lib/rtl/luid.c
Normal file
63
lib/rtl/luid.c
Normal file
|
@ -0,0 +1,63 @@
|
|||
/* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* PURPOSE: Locally unique identifier (LUID) helper functions
|
||||
* FILE: lib/rtl/luid.c
|
||||
* PROGRAMER: Eric Kohl
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <rtl.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
VOID NTAPI
|
||||
RtlCopyLuid(PLUID LuidDest,
|
||||
PLUID LuidSrc)
|
||||
{
|
||||
PAGED_CODE_RTL();
|
||||
|
||||
LuidDest->LowPart = LuidSrc->LowPart;
|
||||
LuidDest->HighPart = LuidSrc->HighPart;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
VOID NTAPI
|
||||
RtlCopyLuidAndAttributesArray(ULONG Count,
|
||||
PLUID_AND_ATTRIBUTES Src,
|
||||
PLUID_AND_ATTRIBUTES Dest)
|
||||
{
|
||||
ULONG i;
|
||||
|
||||
PAGED_CODE_RTL();
|
||||
|
||||
for (i = 0; i < Count; i++)
|
||||
{
|
||||
RtlCopyMemory(&Dest[i],
|
||||
&Src[i],
|
||||
sizeof(LUID_AND_ATTRIBUTES));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#undef RtlEqualLuid
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOLEAN NTAPI
|
||||
RtlEqualLuid(PLUID Luid1,
|
||||
PLUID Luid2)
|
||||
{
|
||||
PAGED_CODE_RTL();
|
||||
|
||||
return (Luid1->LowPart == Luid2->LowPart &&
|
||||
Luid1->HighPart == Luid2->HighPart);
|
||||
}
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue