GetTrusteeNameW function (aclapi.h)
The GetTrusteeName function retrieves the trustee name from the specified TRUSTEE structure.
LPWSTR GetTrusteeNameW( [in] PTRUSTEE_W pTrustee );
A 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.
The aclapi.h header defines GetTrusteeName as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|