# SimConnect_SetNotificationGroupPriority The `SimConnect_SetNotificationGroupPriority` function is used to set the priority for a notification group.     ##### Syntax ``` cpp HRESULT SimConnect_SetNotificationGroupPriority( HANDLE hSimConnect, SIMCONNECT_NOTIFICATION_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 group. | Integer | | *uPriority* | Requests the group's priority. 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_SetNotificationGroupPriority(hSimConnect, GROUP0, SIMCONNECT_GROUP_PRIORITY_HIGHEST); ```   ##### Remarks   See [SimConnect Priorities](../../simconnect-api-reference/#simconnect-priorities) for additional information.