The SIMCONNECT_RECV_FACILITY_DATA structure is used to provide information that has been requested from the server using the SimConnect_RequestFacilityData function. This struct may be received multiple times before receiving SIMCONNECT_RECV_FACILITY_DATA_END.

 

Syntax
struct SIMCONNECT_RECV_FACILITY_DATA : public SIMCONNECT_RECV{   
    DWORD UserRequestId;
    DWORD UniqueRequestId;
    DWORD ParentUniqueRequestId;
    SIMCONNECT_FACILITY_DATA_TYPE Type;
    bool IsListItem;
    DWORD ItemIndex;
    DWORD ListSize;
    DWORD Data; 
    };

 

Members
MemberDescription
UserRequestIdDouble word containing the client defined request ID.
UniqueRequestIdThe unique request ID, so the client can identify it.
ParentUniqueRequestIdIf the current message is about a child object, this field will contain the parent’s UniqueRequestId, otherwise it will be 0.
TypeSpecifies the type of the object, will be a value from the SIMCONNECT_FACILITY_DATA_TYPE enum.
IsListItemIf the current message is about a child object, this specifies if it is an orphan object or not.
ItemIndexIf IsListItem is true then this specifies the index in the list.
ListSizeIf IsListItem is true, then this specifies the list size.
DataBuffer of data. Have to cast it to a struct which matches the definition.

 

Remarks

 

This structure inherits the SIMCONNECT_RECV structure, so use the SIMCONNECT_RECV_ID enumeration to determine which list structure has been received.