# SimConnect_SetInputGroupPriority The **SimConnect\_SetInputGroupPriority** function is used to set the priority for a specified input group object.   ##### Syntax ``` cpp RESULT SimConnect_SetInputGroupPriority( HANDLE hSimConnect, SIMCONNECT_INPUT_GROUP_ID GroupID, DWORD uPriority ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|---------| | *hSimConnect* | Handle to a SimConnect object. | Integer | | *GroupID* | Specifies the ID of the client defined input group that the priority setting is to apply to. | Integer | | *uPriority* | Specifies the priority setting for the input group. See the explanation of [SimConnect Priorities](../../simconnect-api-reference/#simconnect-priorities). | Integer | {{< /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 >}}   ##### Example ``` cpp 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.