#ifndef _NTRTL_H
FORCEINLINE
LUID
NTAPI_INLINE
RtlConvertUlongToLuid(
_In_ ULONG Ulong
)
{
LUID tempLuid;
tempLuid.LowPart = Ulong;
tempLuid.HighPart = 0;
return tempLuid;
}
View code on GitHub// ntddk.h
LUID NTAPI_INLINE RtlConvertUlongToLuid(
[in] ULONG Ulong
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
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.
Ulong [in]Specifies the unsigned long integer to convert.
RtlConvertUlongToLuid returns the converted LUID.
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.