gcd_init_qr2

GameSpy SDK

gcd_init_qr2

Initializes the Server API and integrates the networking of the CDKey SDK with the Query & Reporting 2 SDK.

int gcd_init_qr2(
qr2_t qrec,
int gameid );
RoutineRequired HeaderDistribution
gcd_init_qr2<gcdkeys.h>SDKZIP

Return Value

Returns 0 if successful; non-zero if error.

Parameters

qrec
[in] The intialized QR2 SDK object.
gameid
[in] The game ID issued for your game.

Remarks

You must initialize the Query & Reporting 2 SDK with qr2_init or qr2_init_socket prior to calling this. If you are using multiple instances of the QR2 SDK, you can pass the specific instance information in via the "qrec" argument. Otherwise you can simply pass in NULL.

Section Reference: Gamespy CDKey SDK

See Also: gcd_init