2.2.8.1 Common Selective Enumerate Fields

There are a number of selective enumerate–related structures that use the same fields, as denoted by their field names. This section describes all such fields, and subsequent sections specify the fields in protocol structures. While each structure might have a different subset of these attributes, they all draw from this same set of attributes, detailed as follows.

When specified in a given structure, these fields all contain information about the same user or machine account, or group. The selective enumerate methods return an array of structures, thereby returning information about a set of users, machines, or groups.

AccountControl: A 32-bit bit field representing the UserAccountControl field as described in section 2.2.6.1.

AccountName: A counted Unicode string of type RPC_UNICODE_STRING. When this field is used with a group object, it represents the Name field as described in section 2.2.4.1 (common group fields). Otherwise, this field represents the UserName field as described in section 2.2.6.1 (common user fields).

AdminComment: A counted Unicode string of type RPC_UNICODE_STRING. When this field is used with a group object, it represents the AdminComment field as described in section 2.2.4.1 (common group fields). Otherwise, this field represents the AdminComment field as described in section 2.2.6.1 (common user fields).

Attributes: A 32-bit bit field representing the Attributes field, as described in section 2.2.4.1 (common group fields).

Index: A 32-bit unsigned integer; see the message processing of SamrQueryDisplayInformation3 (section 3.1.5.3.1) for details on the semantics of this field.

Rid: A 32-bit unsigned integer representing the RID of an account.