RtlConvertLongToLuid - NtDoc

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

FORCEINLINE
LUID
NTAPI_INLINE
RtlConvertLongToLuid(
    _In_ LONG Long
    )
{
    LUID tempLuid;

    tempLuid.LowPart = Long;
    tempLuid.HighPart = 0;

    return tempLuid;
}

#endif

View code on GitHub
// ntddk.h

LUID NTAPI_INLINE RtlConvertLongToLuid(
  [in] LONG Long
);

View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

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

RtlConvertLongToLuid function

Description

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

Parameters

Long [in]

Specifies the long integer to convert.

Return value

RtlConvertLongToLuid returns the converted LUID.

Remarks

RtlConvertLongToLuid is used to convert a system-defined privilege value to the locally unique identifier (LUID) used by the system to represent that privilege. Drivers typically pass a LUID to SeSinglePrivilegeCheck, which is usually called by network transport drivers.

See also

LUID

RtlConvertULongToLuid

RtlEqualLuid

SeSinglePrivilegeCheck