ConnMgrSetConnectionPriority

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function changes the priority of the current connection.

Syntax

HRESULT WINAPI ConnMgrSetConnectionPriority(
  HANDLE   hConnection,
  DWORD    dwPriority
); 

Parameters

Return Values

Returns S_OK if successful or returns 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 starts 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

Header connmgr.h
Library cellcore.lib
Windows Embedded CE Windows CE .NET 4.2 and later, Windows Embedded NavReady 2009
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

ConnMgrEstablishConnection
Connection Manager Priority Constants
Connection Manager Functions