Platform SDK: DirectX

DirectPlay4.GetPlayerFriendlyName

The DirectPlay4.GetPlayerFriendlyName method retrieves the friendly name associated with a player.

object.GetPlayerFriendlyName(playerId As Long) As String

Parameters

object
Object expression that resolves to a DirectPlay4 object.
playerId
ID of the player whose name is requested.

Return Values

If it succeeds, the method returns the friendly name of the player.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DPERR_INVALIDOBJECT
DPERR_INVALIDPLAYER

See Also

DirectPlay4.CreatePlayer, DirectPlay4.GetPlayerFormalName, DirectPlay4.SetPlayerName