XGameEventWrite
Write an in-game event that optionally includes “dimensions” and “measurement” data fields.Syntax
Parameters
user _In_Type: XUserHandle The User handle to send the event on behalf of. *serviceConfigId _In_z_
Type: char The XBOX Live service config ID (SCID) for this title. *playSessionId _In_z_
Type: char Play Session ID. This is a unique GUID created by the game at the start of each game session to track the set of events sent in a single play session. eventName _In_z_
Type: char* Event name. dimensionsJson _In_opt_z_
Type: char* Dimensions data fields in JSON format. measurementsJson _In_opt_z_
Type: char* Measurement data fields in JSON format.
Return value
Type: HRESULT Returns S_OK if successful; otherwise, returns an error code. For a list of error codes, see Error Codes.Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
Measurements can only have numerical values, while Dimensions can have a wider variety of types. If preferred, the dimensionsJson field can be used exclusively for writing events.
