$#K SNetGetPlayerName

Returns the name of any player in the game.

BOOL SNetGetPlayerName (
	DWORD		playerid,
	LPSTR		buffer,
	DWORD		buffersize
);

Parameters

playerid
The ID of the player whose name is being requested.

buffer
A string buffer into which the name will be copied.

buffersize
The size, in characters, of the buffer.

Return Value

This function returns TRUE for success or FALSE for failure.  The function can fail if:
•	No network provider has been initialized
•	No game has been created or joined
•	No active player exists with the given ID
•	No buffer is given
•	The size of the buffer is zero