The SimConnect_UnsubscribeToFacilities function is used to request that notifications of additions to the facilities cache are not longer sent.

 

Syntax
HRESULT SimConnect_UnsubscribeToFacilities(
    HANDLE  hSimConnect,
    SIMCONNECT_FACILITY_LIST_TYPE  type
    );

 

Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
typeSpecifies one member of the SIMCONNECT_FACILITY_LIST_TYPE enumeration type.Enum

 

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 function.

 

 

See Also