CreateGroupCreateGroup*
*Contents  *Index  *Topic Contents
*Previous Topic: AddItem
*Next Topic: DeleteGroup

CreateGroup


CreateGroup(GroupName[,CommonGroupFlag])

Instructs Program Manager to create a new group or activate the window of an existing group.

GroupName
Group to be created or activated. This parameter is a string. If a group already exists with the name specified by GroupName, CreateGroup activates the group window.
CommonGroupFlag
Specifies whether the new group is a common group or a personal group. If this parameter is 1, a common group is created; if it is 0, a personal group is created. To create a common group, the user that is currently logged on must have administrative privileges. If this parameter is 1 but the user does not have administrative privileges, the command fails. If no value is specified and if the user has administrative privileges, the default value of this parameter is 1 (common group). If no value is specified and the user does not have administrative privileges, the default value is 0 (personal group).

If the second parameter of this command specifies the path of the group file (as was required in Windows version 3.1), the parameter is ignored.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.