DirectX SDK

IDirectPlay4

Applications use the methods of the IDirectPlay4 interface to create DirectPlay objects and work with system-level variables. (The IDirectPlay4A interface is the same as the IDirectPlay4 interface, except that IDirectPlay4A uses ANSI characters, and IDirectPlay4 uses Unicode.)

The methods of the IDirectPlay4 interface can be organized into the following groups.

Session management Close
  EnumConnections
EnumSessions
GetCaps
GetGroupConnectionSettings
GetSessionDesc
InitializeConnection
Open
SecureOpen
SetGroupConnectionSettings
SetSessionDesc
StartSession
Player management CreatePlayer
  DestroyPlayer
EnumPlayers
GetPlayerAccount
GetPlayerAddress
GetPlayerCaps
GetPlayerData
GetPlayerFlags
GetPlayerName
SetPlayerData
SetPlayerName
Message management CancelMessage
  CancelPriority
GetMessageCount
GetMessageQueue
Receive
Send
SendChatMessage
SendEx
Group management AddGroupToGroup
  AddPlayerToGroup
CreateGroup
CreateGroupInGroup
DeleteGroupFromGroup
DeletePlayerFromGroup
DestroyGroup
EnumGroupPlayers
EnumGroups
EnumGroupsInGroup
GetGroupData
GetGroupFlags
GetGroupName
GetGroupOwner
GetGroupParent
SetGroupData
SetGroupName
SetGroupOwner
Initialization Initialize

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

IUnknown AddRef
  QueryInterface
Release

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dplay.h.
  Import Library: Use dplayx.lib.