DirectX SDK |
The IDirectPlay4::SetGroupName method sets the name of a group after it has been created. Only the computer that created the group can set the name of the group. A DPMSG_SETPLAYERORGROUPNAME system message will be sent to all the other players notifying them of the change unless DPSESSION_NODATAMESSAGES is set in the session description.
HRESULT SetGroupName( DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags );
Returns DP_OK if successful, or one of the following error values otherwise:
DPERR_CONNECTIONLOST |
DPERR_INVALIDGROUP |
DPERR_INVALIDOBJECT |
DPERR_INVALIDPARAMS |
DPERR_INVALIDPLAYER |
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.
DPNAME, DPMSG_SETPLAYERORGROUPNAME, IDirectPlay4::GetGroupName, IDirectPlay4::Send