GROUP_INFO_2 structure (lmaccess.h)
The GROUP_INFO_2 structure contains information about a global group, including name, identifier, and resource attributes.
It is recommended that you use the GROUP_INFO_3 structure instead.
Syntax
typedef struct _GROUP_INFO_2 {
LPWSTR grpi2_name;
LPWSTR grpi2_comment;
DWORD grpi2_group_id;
DWORD grpi2_attributes;
} GROUP_INFO_2, *PGROUP_INFO_2;
Members
grpi2_name
Pointer to a null-terminated Unicode character string that specifies the name of the global group. For more information, see the following Remarks section.
When you call the NetGroupSetInfo function this member is ignored.
grpi2_comment
Pointer to a null-terminated Unicode character string that contains a remark associated with the global group. This member can be a null string. The comment can contain MAXCOMMENTSZ characters.
grpi2_group_id
The relative identifier (RID) of the global group. The NetUserAdd and NetUserSetInfo functions ignore this member. For more information about RIDs, see SID Components.
grpi2_attributes
These attributes are hard-coded to SE_GROUP_MANDATORY, SE_GROUP_ENABLED, and SE_GROUP_ENABLED_BY_DEFAULT. For more information, see TOKEN_GROUPS.
Remarks
User account names are limited to 20 characters and group names are limited to 256 characters. In addition, account names cannot be terminated by a period and they cannot include commas or any of the following printable characters: ", /, , [, ], :, |, <, >, +, =, ;, ?, *. Names also cannot include characters in the range 1-31, which are nonprintable.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | lmaccess.h (include Lm.h) |