Share via


ConnMgrSetConnectionPriority (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

Connection Manager Functions
ConnMgrEstablishConnection
Connection Manager Priority Constants