gpUserIDFromProfile

GameSpy SDK

gpUserIDFromProfile

This function gets a profile’s user ID.

GPResult gpUserIDFromProfile(
GPConnection * connection,
GPProfile profile,
int * userid );
RoutineRequired HeaderDistribution
gpUserIDFromProfile<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.
profile
[in] The profile ID.
userid
[out] The user ID associated with the specified profile ID.

Remarks

Every profile is associated with a user account, and each user account has a user id associated with it. This functions gets the user id for a given profile’s user account.

Section Reference: Gamespy Presence SDK