Microsoft DirectX 8.1 (Visual Basic) |
When this method is called, DirectPlay calls each player's DirectPlay8Event.AddRemovePlayerGroup method to notify him or her of the new group member.
AddPlayerToGroup(idGroup As Long, _ idClient As Long, lFlags As Long) As Long
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.
If the method fails, Err.Number can be set to one of the following values.
DPNERR_INVALIDGROUP |
DPNERR_INVALIDFLAGS |
Any peer can add itself or another peer to an existing group. After the peer is successfully added to the group, all messages sent to the group are also sent to the peer.
For a peer to add itself to the group, pass DPNID_ME in the idClient parameter.