Platform SDK: Network Management

GROUP_INFO_2

The GROUP_INFO_2 structure contains information about a global group, including name, identifier, and resource attributes.

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. The constant GNLEN specifies the maximum number of characters in the string.

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
Specifies a DWORD value that contains the relative identifier of the global group.
grpi2_attributes
Specifies a DWORD value that contains the attributes of a group.

Windows NT/2000: On Windows NT 4.0 and Windows 2000, you can no longer set these attributes. They are hard-coded to SE_GROUP_MANDATORY, SE_GROUP_ENABLED, and SE_GROUP_ENABLED_BY_DEFAULT. For more information, see TOKEN_GROUPS.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Unsupported.
  Header: Declared in Lmaccess.h.

See Also

Network Management Overview, Network Management Structures, Group Functions, NetGroupAdd, NetGroupEnum, NetGroupGetInfo, NetGroupSetInfo, TOKEN_GROUPS