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;
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. |
<DomainName>\<AccountName>
LOCALGROUP_MEMBERS_INFO_0,
LOCALGROUP_MEMBERS_INFO_1,
LOCALGROUP_MEMBERS_INFO_3,
NetLocalGroupAddMembers, NetLocalGroupDelMembers,
NetLocalGroupGetMembers