The GetTrusteeName function retrieves the trustee name from a TRUSTEE structure.
LPTSTR GetTrusteeName(
PTRUSTEE pTrustee // pointer to a TRUSTEE structure
);
If the TrusteeForm member of the TRUSTEE structure is TRUSTEE_IS_NAME, the return value is the pointer assigned to the ptstrName member of the structure.
If the TrusteeForm member is TRUSTEE_IS_SID, the return value is NULL. The function does not look up the name associated with a security identifier (SID).
The GetTrusteeName function does not allocate any memory.
Windows NT: Requires version 4.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in aclapi.h.
Import Library: Use advapi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Access Control Overview, Access Control Functions, TRUSTEE, SID