Platform SDK: DirectX

DirectPlay4.GetPlayerAccountId

The DirectPlay4.GetPlayerAccountId method retrieves the account identifier of a specified player when called by the session host in a secure session.

object.GetPlayerAccountId(playerId As Long) As String

Parameters

object
Object expression that resolves to a DirectPlay4 object.
playerId
ID of the player whose account information is to be retrieved.

Return Values

The method returns a unique identifier that describes a player who is securely logged on. The format of the identifier depends on the Security Support Provider Interface (SSPI) package being used.

Error Codes

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

Remarks

The information returned by this method uniquely identifies an account. You can use this information to record the transactions or other activities of a logged-on player.

See Also

DirectPlay4.SecureOpen