gpGetErrorCode

GameSpy SDK

gpGetErrorCode

This function gets the current error code for a connection.

GPResult gpGetErrorCode(
GPConnection * connection,
GPErrorCode * errorCode );
RoutineRequired HeaderDistribution
gpGetErrorCode<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.
errorCode
[out] The current error code.

Remarks

This function gets the current error code for connection. It can be used to determine the specific cause of the most recent error. See the GP header, gp.h, for all of the possible error codes.

Section Reference: Gamespy Presence SDK