Platform SDK: Access Control |
The OBJECTS_AND_NAME structure contains a string that identifies a trustee by name and additional strings that identify the object types of an object-specific ACE.
typedef struct _OBJECTS_AND_NAME { DWORD ObjectsPresent; SE_OBJECT_TYPE ObjectType; LPTSTR ObjectTypeName LPTSTR InheritedObjectTypeName; LPTSTR ptstrName; } OBJECTS_AND_NAME, *POBJECTS_AND_NAME;
Value | Meaning |
---|---|
ACE_OBJECT_TYPE_PRESENT | The ObjectTypeName member contains a string. |
ACE_INHERITED_OBJECT_TYPE_PRESENT | The InheritedObjectTypeName member contains a string. |
This string must be a valid LDAP display name in the Active Directory schema.
If the ACE_OBJECT_TYPE_PRESENT bit is not set in the ObjectsPresent member, the ObjectTypeName member is ignored, and the ACE protects the object to which the ACL is assigned.
This string must be a valid LDAP display name in the Active Directory schema.
If the ACE_INHERITED_OBJECT_TYPE_PRESENT bit is not set in the ObjectsPresent member, the InheritedObjectTypeName member is ignored, and all types of child objects can inherit the ACE. Otherwise, only the specified object type can inherit the ACE. In either case, inheritance is also controlled by the inheritance flags in the ACE_HEADER as well as by any protection against inheritance placed on the child objects.
The ptstrName member of a TRUSTEE structure can be a pointer to an OBJECTS_AND_NAME structure. This enables functions such as SetEntriesInAcl and GetExplicitEntriesFromAcl to store object-specific ACE information in the Trustee member of an EXPLICIT_ACCESS structure.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Accctrl.h.
Unicode: Declared as Unicode and ANSI structures.
Access Control Overview, Access Control Structures, GetExplicitEntriesFromAcl, OBJECTS_AND_SID, SE_OBJECT_TYPE, SetEntriesInAcl, TRUSTEE