BuildTrusteeWithObjectsAndSidA function

The BuildTrusteeWithObjectsAndSid function initializes a TRUSTEE structure with the object-specific access control entry (ACE) information and initializes the remaining members of the structure to default values. The caller also specifies the SID structure that represents the security identifier of the trustee.

Syntax

void BuildTrusteeWithObjectsAndSidA(
  PTRUSTEE_A       pTrustee,
  POBJECTS_AND_SID pObjSid,
  GUID             *pObjectGuid,
  GUID             *pInheritedObjectGuid,
  PSID             pSid
);

Parameters

pTrustee

A pointer to a TRUSTEE structure to initialize. The BuildTrusteeWithObjectsAndSid function does not allocate any memory. If this parameter is NULL or a pointer that is not valid, the results are undefined.

pObjSid

A pointer to an OBJECTS_AND_SID structure that contains information about the trustee and the securable object.

pObjectGuid

A pointer to a GUID structure that describes the ObjectType GUID to be added to the TRUSTEE structure.

pInheritedObjectGuid

A pointer to a GUID structure that describes the InheritedObjectType GUID to be added to the TRUSTEE structure.

pSid

A pointer to a SID structure that identifies the trustee.

Return value

None

Remarks

This function does not allocate memory for the TRUSTEE and OBJECTS_AND_SID structures.

For more information about object-specific ACEs, see Object-specific ACEs.

Requirements

   
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

Basic Access Control Functions

BuildTrusteeWithName

BuildTrusteeWithObjectsAndName

BuildTrusteeWithSid

OBJECTS_AND_NAME

Object-specific ACEs

SE_OBJECT_TYPE

SID

TRUSTEE