gpDenyBuddyRequest

GameSpy SDK

gpDenyBuddyRequest

This function denies a buddy request. It is called in response to the gpRecvBuddyRequest callback getting called.

GPResult gpDenyBuddyRequest(
GPConnection * connection,
GPProfile profile );
RoutineRequired HeaderDistribution
gpDenyBuddyRequest<gp.h>SDKZIP

Return Value

This function returns GP_NO_ERROR upon success. Otherwise a valid GPResult is returned.

Parameters

connection
[in] A GP connection interface with an established connection.
profile
[in] The profile ID of the player who sent the AddBuddyRequest; i.e., the player you are denying

Remarks

This function is used to deny a buddy request received with the gpRecvBuddyRequest callback. This function does not need to be called immediately after a request has been received. Nothing is sent to the remote profile letting them know the request was denied.

Section Reference: Gamespy Presence SDK