The SimConnect_SetInputGroupPriority function is used to set the priority for a specified input group object.

 

Syntax
RESULT SimConnect_SetInputGroupPriority(
    HANDLE  hSimConnect,
    SIMCONNECT_INPUT_GROUP_ID  GroupID,
    DWORD  uPriority
    );

 

Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
GroupIDSpecifies the ID of the client defined input group that the priority setting is to apply to.Integer
uPrioritySpecifies the priority setting for the input group. See the explanation of SimConnect Priorities.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.

 

Example
hr=SimConnect_SetInputGroupPriority(hSimConnect,INPUT0,SIMCONNECT_GROUP_PRIORITY_HIGHEST);

 

Remarks

A priority setting must be made for all input groups, otherwise event notifications will not be sent by the SimConnect server.