LOCALGROUP_MEMBERS_INFO_2

The LOCALGROUP_MEMBERS_INFO_2 structure is used in the NetLocalGroupAddMembers and NetLocalGroupDelMembers functions to identify a member of a local group, and account and security information for the member.

typedef struct _LOCALGROUP_MEMBERS_INFO_2 {
     PSID         lgrmi2_sid;
     SID_NAME_USE lgrmi2_sidusage;
     LPWSTR       lgrmi2_domainandname;
} LOCALGROUP_MEMBERS_INFO_2, *PLOCALGROUP_MEMBERS_INFO_2, *LPLOCALGROUP_MEMBERS_INFO_2;
 

Members

lgrmi2_sid
Specifies the security identifier of an account that is a member of this local group. The account may be a user account or a global group account.
Lgrmi2_sidusage
Specifies the account type of the security identifier specified in the lgrmi2_sid member. The following values are possible.
Value Meaning
SidTypeUser The account is a user account.
SidTypeGroup The account is a global group account.
SidTypeWellKnownGroup The account is a well-known group account (such as Everyone).
SidTypeDeletedAccount The account has been deleted.
SidTypeUnknown The account type cannot be determined.

lgrmi2_domainandname
Specifies the account name of the account specified by the lgrmi2_sid member. The account name is of the form.
<DomainName>\<AccountName>
 

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in lmaccess.h.

See Also

Networking (Net) Overview, Net Structures, LOCALGROUP_MEMBERS_INFO_0, LOCALGROUP_MEMBERS_INFO_1, LOCALGROUP_MEMBERS_INFO_3,
NetLocalGroupAddMembers, NetLocalGroupDelMembers, NetLocalGroupGetMembers