scCreateReport

GameSpy SDK

scCreateReport

Creates a new report for the game session.

SCResult scCreateReport(
const SCInterfacePtr theInterface,
gsi_u32 theHeaderVersion,
gsi_u32 thePlayerCount,
gsi_u32 theTeamCount,
const SCReportPtr * theReportOut );
RoutineRequired HeaderDistribution
scCreateReport<sc.h>SDKZIP

Return Value

Enum value used to indicate the specific result of the request. This will return SCResult_NO_ERROR if the request completed successfully.

Parameters

theInterface
[in] A valid SC Inteface Object
theHeaderVersion
[in] Header version of the report
thePlayerCount
[in] Player count for allocating enough resources and verification purposes
theTeamCount
[in] Team count for allocating enough resources and verification purposes
theReportOut
[ref] The pointer to created SC Report Object

Remarks

There should have been a call to CreateSession and SetReportIntention before calling this function. This function should be called after a game session has ended. The player count and team count are more accurate at that point for dedicated server games. This function should also be called before calling any scReport* function. The header version can be obtained from the adminstration site where the the keys are created. See the overview on obtaining access or send a request [email protected].