DirectX SDK

DirectPlayEnumPlayers.GetLongName

The DirectPlayEnumPlayers.GetLongName method retrieves the formal name of a player or group.

object.GetLongName(index As Long) As String 

Parameters

object
Object expression that resolves to a DirectPlayEnumPlayers object.
index
Element of the enumeration object for which to retrieve data.

Return Values

The method returns the formal name, or handle, assigned when the player or group was created.

Error Codes

If the method fails, an error is raised and Err.Number will be set.