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
HRESULT SimConnect_UnsubscribeToFacilities_EX1(
    HANDLE hSimConnect,
    SIMCONNECT_FACILITY_LIST_TYPE type,
    bool bUnsubscribeNewInRange,
    bool bUnsubscribeOldOutRange
);

 

Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
typeSpecifies one member of the SIMCONNECT_FACILITY_LIST_TYPE enumeration type.Enum
bUnsubscribeNewInRangeSpecifies that the “new element in range” event should be disabled.Bool
bUnsubscribeOldOutRangeSpecifies that the “element out of range” event should be disabled.Bool

 

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.

 

Remarks

This is used to terminate notifications generated by the SimConnect_SubscribeToFacilities_EX1 function.

 

See Also