Share via


ConnMgrSetConnectionPriority

Send Feedback

This function changes the priority of the current connection.

HRESULT WINAPI ConnMgrSetConnectionPriority(
  HANDLE hConnection,
  DWORD dwPriority
); 

Parameters

Return Values

Returns S_OK if successful, or an error code if the function call failed.

Remarks

Connection Manager arbitrates among multiple connections, satisfying as many as possible at a time but giving preference to higher priority connection types.

This function is useful if you want to change the priority of a specific task after it begins running. For example, you can prevent a connection from being interrupted or halted if you increase the priority of that connection after it starts running.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Connmgr.h.
Link Library: Cellcore.lib.

See Also

ConnMgrEstablishConnection

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.