The DOMAIN_GROUP_MEMBERSHIP structure identifies a domain and groups to which an account belongs. It is sent within the PAC_DEVICE_INFO (section 2.12) structure.<2>

   PISID DomainId;
   ULONG GroupCount;
   [size_is(GroupCount)] PGROUP_MEMBERSHIP GroupIds;

DomainId: A SID structure that contains the SID for the domain. This member is used in conjunction with the GroupIds members to create group SIDs for the device.

GroupCount: A 32-bit unsigned integer that contains the number of groups within the domain to which the account belongs.

GroupIds: A pointer to a list of GROUP_MEMBERSHIP structures that contain the groups to which the account belongs in the domain. The number of groups in this list MUST be equal to GroupCount.