Platform SDK: Access Control |
The AllocateLocallyUniqueId function allocates a locally unique identifier (LUID).
BOOL AllocateLocallyUniqueId( PLUID Luid // locally unique identifier );
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
An LUID is unique only within a single session. The same LUID value can be used on different computers or on the same computer after it has been restarted.
Windows NT/2000: Requires Windows NT 3.1 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Advapi32.lib.
Access Control Overview, Access Control Functions, LookupPrivilegeValue