# SimConnect_UnsubscribeToFacilities_EX1 The **SimConnect\_UnsubscribeToFacilities\_EX1** function is used to request that notifications of additions to the facilities cache are not longer sent, with the ability to specify which event should be disabled.   ##### Syntax ``` cpp HRESULT SimConnect_UnsubscribeToFacilities_EX1( HANDLE hSimConnect, SIMCONNECT_FACILITY_LIST_TYPE type, bool bUnsubscribeNewInRange, bool bUnsubscribeOldOutRange ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |---------------------------|-------------------------------------------------------------------------------|---------| | `hSimConnect` | Handle to a SimConnect object. | Integer | | `type` | Specifies one member of the `SIMCONNECT_FACILITY_LIST_TYPE` enumeration type. | Enum | | `bUnsubscribeNewInRange` | Specifies that the "new element in range" event should be disabled. | Bool | | `bUnsubscribeOldOutRange` | Specifies that the "element out of range" event should be disabled. | Bool | {{< /table-wrapper >}}   ##### Return Values The function returns an **HRESULT**. Possible values include, but are not limited to, those in the following table. {{< table-wrapper >}} | Return value | Description | |--------------|-------------------------| | S\_OK | The function succeeded. | | E\_FAIL | The function failed. | {{< /table-wrapper >}}   ##### Remarks This is used to terminate notifications generated by the `SimConnect_SubscribeToFacilities_EX1` function.   ##### See Also - [SimConnect API Reference](../../simconnect-api-reference/) - [SimConnect\_SubscribeToFacilities\_EX1](simconnect-subscribetofacilities-ex1/) - [SimConnect\_RequestFacilitiesList](simconnect-requestfaciliteslist/) - [SimConnect\_UnsubscribeToFacilities](simconnect-unsubscribetofacilities/)