# SimConnect_RequestJetwayData The **SimConnect\_RequestJetwayData** function is used to request data from one or more jetways.   ##### Syntax ``` cpp HRESULT SimConnect_RequestJetwayData( HANDLE hSimConnect, const char* szAirportIcao, DWORD dwArrayCount, int* pIndexes ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |-----------------|---------------------------------------------------------|---------| | `hSimConnect` | Handle to a SimConnect object. | Integer | | `szAirportIcao` | The airport ICAO to check. | Integer | | `dwArrayCount` | This is the number of elements in `pIndexes`. Can be 0. | Integer | | `pIndexes` | An array of parking indices. Can be `nullptr`. | Integer | {{< /table-wrapper >}}   ##### 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`](../structures-and-enumerations/simconnect-recv-jetway-data/) structure with an array of [`SIMCONNECT_JETWAY_DATA`](../structures-and-enumerations/simconnect-jetway-data/) structs containing the jetway data.   ##### See Also - [SimConnect API Reference](../../simconnect-api-reference/) - [SIMCONNECT\_RECV\_JETWAY\_DATA](../structures-and-enumerations/simconnect-recv-jetway-data/)