gpInitialize

GameSpy SDK

gpInitialize

This function is used to initialize a connection object.

GPResult gpInitialize(
GPConnection * connection,
int productID,
int namespaceID,
int partnerID );
RoutineRequired HeaderDistribution
gpInitialize<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.
productID
[in] The application's product ID. Contact [email protected] to obtain one.
namespaceID
[in] The application's namespace ID. 0 for no namespace, 1 for the default namespace, other numbers for custom namespaces.
partnerID
[in] The application's partner ID. Typically this will be set to the value defined by GP_PARTNERID_GAMESPY.

Remarks

This function initialize a connection object. As long as there are no errors, this object should stay valid until gpDestroy is called. After the object is initialized by this function, callbacks can be set for the connection, as well as any other states, such as info-caching.
namespaceID is normally 0 for no namespace or 1 for the default GameSpy namespace (used by GameSpy Arcade). If your game is using a custom namespace you can contact [email protected] to find out what namespace ID to use.
partnerID is normally the value defined by GP_PARTNERID_GAMESPY.

Section Reference: Gamespy Presence SDK