Platform SDK: DirectX

DirectPlay4.GetPlayerFlags

The DirectPlay4.GetPlayerFlags method retrieves flags used to describe the player when the player was created.

object.GetPlayerFlags(id As Long) As CONST_DPPLAYERFLAGS

Parameters

object
Object expression that resolves to a DirectPlay4 object.
id
ID of the player whose flag settings are to be retrieved.

Return Values

The method returns the player's flag settings. The return value can contain one or more of the following:

DPPLAYER_LOCAL
The player was created by this application. If this flag is not specified, the player is a remote player.
DPPLAYER_SERVERPLAYER
The player is a server player for client/server communications.
DPPLAYER_SPECTATOR
The player was created as a spectator.

Error Codes

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

See Also

DirectPlay4.CreatePlayer