SIMCONNECT_DATA_RACE_RESULT

The SIMCONNECT_DATA_RACE_RESULT structure is used to hold multiplayer racing results.

 

Syntax
struct SIMCONNECT_DATA_RACE_RESULT{
    DWORD  dwNumberOfRacers;
    GUID  MissionGUID;
    char  szPlayerName[MAX_PATH];
    char  szSessionType[MAX_PATH];
    char  szAircraft[MAX_PATH];
    char  szPlayerRole[MAX_PATH];
    double  fTotalTime;
    double  fPenaltyTime;
    DWORD  dwIsDisqualified;
};

 

Members
Member Description
dwNumberOfRacers The total number of racers.
MissionGUID The GUID of the mission that has been selected by the host.
szPlayerName[MAX_PATH] Null terminated string containing the name of the player.
szSessionType[MAX_PATH] Null terminated string containing the type of the multiplayer session, currently one of: "LAN" or "GAMESPY".
szAircraft[MAX_PATH] Null terminated string containing the aircraft type.
szPlayerRole[MAX_PATH] Null terminated string containing the player's role (or name) in the mission. This string wil be filled from the Name property of the Player object in the mission file.
fTotalTime If this structure is a member of a SIMCONNECT_RECV_EVENT_RACE_END structure, then this contains the final race time in seconds, or 0 for DNF (Did Not Finish). If this structure is a member of a SIMCONNECT_RECV_EVENT_RACE_LAP structure, then this contains the lap time in seconds.
fPenaltyTime If this structure is a member of a SIMCONNECT_RECV_EVENT_RACE_END structure, then this contains the final penalty time in seconds. If this structure is a member of a SIMCONNECT_RECV_EVENT_RACE_LAP structure, then this contains the total penalty time in seconds received so far (not just for this lap).
dwIsDisqualified A boolean value, 0 indicating the player has not been disqualified, non-zero indicating they have been disqualified.

 

Remarks

This structure is never sent on its own, but is always a member of either a SIMCONNECT_RECV_EVENT_RACE_END structure or a SIMCONNECT_RECV_EVENT_RACE_LAP structure. 

 

See Also