#ifndef _NTRTL_H
FORCEINLINE
LUID
NTAPI_INLINE
RtlConvertLongToLuid(
_In_ LONG Long
)
{
LUID tempLuid;
tempLuid.LowPart = Long;
tempLuid.HighPart = 0;
return tempLuid;
}
View code on GitHub
// ntddk.h
LUID NTAPI_INLINE RtlConvertLongToLuid(
[in] LONG Long
);
View the official Windows Driver Kit DDI reference
This function is documented in Windows Driver Kit.
The RtlConvertLongToLuid routine converts a long integer to a locally unique identifier (LUID), which is used by the system to represent a security privilege.
Long
[in]Specifies the long integer to convert.
RtlConvertLongToLuid returns the converted LUID.
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.