Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function changes the priority of the current connection.
HRESULT WINAPI ConnMgrSetConnectionPriority(
HANDLE hConnection,
DWORD dwPriority
);
Parameters
- hConnection
[in] Handle to the connection, returned from ConnMgrEstablishConnection. - dwPriority
[in] The new priority, specified by one of the Connection Manager priority constants. For details, see Connection Manager Priority Constants.
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
Send Feedback on this topic to the authors