Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.DestroyGroup

Deletes a group created by the DirectPlay8Peer.CreateGroup method. This method can be called by any peer in the group.

This method will call the DirectPlay8Event.AddRemovePlayerGroup method for each peer in the group.

DestroyGroup(idGroup As Long, lFlags As Long) As Long

Parts

idGroup
Long value that specifies of the identifier of the group to delete.
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_INVALIDFLAGS
DPNERR_INVALIDGROUP