GetTrusteeFormA function (aclapi.h)

The GetTrusteeForm function retrieves the trustee name from the specified TRUSTEE structure. This value indicates whether the structure uses a name string or a security identifier (SID) to identify the trustee.

Syntax

TRUSTEE_FORM GetTrusteeFormA(
  [in] PTRUSTEE_A pTrustee
);

Parameters

[in] pTrustee

A pointer to a TRUSTEE structure.

Return value

The return value is one of the constants from the TRUSTEE_FORM enumeration.

Remarks

Note

The aclapi.h header defines GetTrusteeForm as an alias that 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 is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header aclapi.h
Library Advapi32.lib
DLL Advapi32.dll

See also

Access Control Overview

Basic Access Control Functions

GetTrusteeName

GetTrusteeType

TRUSTEE

TRUSTEE_FORM