IDirectPlay::SetPlayerName

HRESULT SetPlayerName(DPID pidID,

LPSTR lpPlayerFriendlyName, LPSTR lpPlayerFormalName);

Changes the player's friendly and formal names.

·Returns DP_OK if successful, or one of the following error values otherwise:

DPERR_INVALIDPLAYER DPERR_INVALIDOBJECT

pidID

ID for which the player name is being requested.

lpPlayerFriendlyName

Address to a string containing the player's new friendly name.

lpPlayerFormalName

Address to a string containing the player's new formal name.

This method cannot be used to change the names of a group.