The BuildTrusteeWithSid function initializes a
TRUSTEE structure. The caller specifies the security identifier (SID) of the trustee. The function sets other members of the structure to default values and does not look up the name associated with the SID.
Syntax
VOID WINAPI BuildTrusteeWithSid(
__inout PTRUSTEE pTrustee,
__in_opt PSID pSid
);
Parameters
- pTrustee [in, out]
-
A pointer to a
TRUSTEE structure to initialize. The BuildTrusteeWithSid function does not allocate any memory. If this parameter is NULL or a pointer that is not valid, the results are undefined.
- pSid [in, optional]
-
A pointer to a
SID structure that identifies the trustee. The BuildTrusteeWithSid function assigns this pointer to the ptstrName member of the TRUSTEE structure. The function sets the other members of the TRUSTEE structure as follows.
| Value | Meaning |
- pMultipleTrustee
|
NULL
|
- MultipleTrusteeOperation
|
NO_MULTIPLE_TRUSTEE
|
- TrusteeForm
|
TRUSTEE_IS_SID
|
- TrusteeType
|
TRUSTEE_IS_UNKNOWN
|
Return value
This function does not return a value.
Requirements
|
Minimum supported client
| Windows XP |
|
Minimum supported server
| Windows Server 2003 |
|
Header
|
- Aclapi.h
|
|
Library
|
- Advapi32.lib
|
|
DLL
|
- Advapi32.dll
|
|
Unicode and ANSI names
| BuildTrusteeWithSidW (Unicode) and BuildTrusteeWithSidA (ANSI) |
See also
-
Access Control Overview
- Basic Access Control Functions
-
BuildTrusteeWithName
-
BuildTrusteeWithObjectsAndName
-
BuildTrusteeWithObjectsAndSid
-
TRUSTEE
Send comments about this topic to Microsoft
Build date: 11/15/2011