DirectX SDK

DirectPlay4.GetPlayerFormalName

The DirectPlay4.GetPlayerFormalName method retrieves the formal name associated with a player.

object.GetPlayerFormalName(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 formal 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.GetPlayerFriendlyName, DirectPlay4.SetPlayerName