RtlConvertUlongToLuid - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

FORCEINLINE
LUID
NTAPI_INLINE
RtlConvertUlongToLuid(
    _In_ ULONG Ulong
    )
{
    LUID tempLuid;

    tempLuid.LowPart = Ulong;
    tempLuid.HighPart = 0;

    return tempLuid;
}

#endif

View code on GitHub
// ntddk.h

LUID NTAPI_INLINE RtlConvertUlongToLuid(
  [in] ULONG Ulong
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntddk-rtlconvertulongtoluid)

RtlConvertUlongToLuid function

Description

The RtlConvertUlongToLuid routine converts an unsigned long integer to a locally unique identifier (LUID), which is used by the system to represent a security privilege.

Parameters

Ulong [in]

Specifies the unsigned long integer to convert.

Return value

RtlConvertUlongToLuid returns the converted LUID.

Remarks

RtlConvertUlongToLuid is used to convert a system-defined privilege value, passed as a ULONG, to a locally unique identifier (LUID) used by the system to represent that privilege. Drivers typically pass a LUID to SeSinglePrivilegeCheck.

See also

LUID

RtlConvertLongToLuid

RtlEqualLuid

SeSinglePrivilegeCheck