The SimConnect_UnsubscribeToCommBusEvent function is used to unsubscribe the client from a communication (CommBus) event.

 

C++ C#

Syntax
HRESULT SimConnect_UnsubscribeToCommBusEvent(
    HANDLE hSimConnect,
    SIMCONNECT_CLIENT_EVENT_ID EventID
    );

 

Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
EventIDSpecifies the ID of the client event.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.

  

Syntax
void SimConnect::UnsubscribeToCommBusEvent(
    Enum EventID
    );

 

Parameters
ParameterDescriptionType
EventIDThe ID with which the event has been registered on the client.Enum

 

Return Values

N/A (use a try/catch to test for errors).

 

 

Remarks

N/A