IDirectPlay2

Applications use the methods of the IDirectPlay2 interface to create DirectPlay objects and work with system-level variables. (The IDirectPlay2A interface is the same as the IDirectPlay2 interface, except that IDirectPlay2A uses ANSI characters, and IDirectPlay2 uses Unicode.) This section is a reference to the methods of this interface.

The methods of the IDirectPlay2 interface can be organized into the following groups:

Data management GetGroupData

GetPlayerData

SetGroupData

SetPlayerData

Group management AddPlayerToGroup

CreateGroup

DeletePlayerFromGroup

DestroyGroup

EnumGroupPlayers

EnumGroups

GetGroupName

SetGroupName

Initialization Initialize

Message management GetMessageCount

Receive

Send

Player management CreatePlayer

DestroyPlayer

EnumPlayers

GetPlayerAddress

GetPlayerCaps

GetPlayerName

SetPlayerName

Session management Close

EnumSessions

GetCaps

GetSessionDesc

Open

SetSessionDesc

The IDirectPlay2 interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:

AddRef

QueryInterface

Release