Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.SetGroupInfo

Sets a block of data associated with a group, including the name of the group.

DirectPlay calls each player's DirectPlay8Event.InfoNotify method to notify him or her that the group information has changed.

SetGroupInfo(idGroup As Long, _
    PlayerInfo As DPN_GROUP_INFO, _
    lFlags As Long) As Long

Parts

idGroup
Long value that specifies the identifier of the group whose data block will be modified.
PlayerInfo
DPN_GROUP_INFO type that describes the group data to set.
lFlags
Flag that controls how this method is processed. The following flag can be set for this method:
DPNOP_SYNC
Causes the method to process synchronously.

Return Values

Returns the asynchronous handle for this operation. This is the handle that is used in lAsyncHandle parameter of the DirectPlay8Peer.CancelAsyncOperation method to cancel the request, if the request is processed asynchronously.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DPNERR_INVALIDGROUP
DPNERR_INVALIDFLAGS