The SimConnect_RequestJetwayData function is used to request data from one or more jetways.

 

Syntax
HRESULT SimConnect_RequestJetwayData(
    HANDLE hSimConnect,
    const char* szAirportIcao,
    DWORD dwArrayCount,
    int* pIndexes
    );

 

Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
szAirportIcaoThe airport ICAO to check.Integer
dwArrayCountThis is the number of elements in pIndexes. Can be 0.Integer
pIndexesAn array of parking indices. Can be nullptr.Integer

 

Return Values

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return valueDescription
S_OKThe function succeeded.
E_FAILThe function failed.
SIMCONNECT_EXCEPTION_JETWAY_DATA

The function has thrown an exception where:

  1. dwIndex = 1:
    1. ICAO is wrong
    2. Airport is not spawned
  2. dwIndex = 2:
    1. At least one of the given indices is wrong
  3. dwIndex = 99:
    1. Internal error

 

Remarks

If the Request works, the client will receive the SIMCONNECT_RECV_JETWAY_DATA structure with an array of SIMCONNECT_JETWAY_DATA structs containing the jetway data.

 

See Also