Share via


CmSetPriority (Compact 7)

3/12/2014

This function associates a priority with a session.

Syntax

CM_RESULT CmSetPriority(
    __in CM_SESSION_HANDLE hSession,
    __in CM_PRIORITY Priority 
);

Parameters

Return Value

Value Description

CMRE_SUCCESS

The operation completed successfully.

CMRE_INVALID_SESSION

The hSession is not valid.

Remarks

The default priority for a connection is 0.

The priority values and scheme are defined in CM_PRIORITY.

Requirements

Header

cmnet.h

Library

cmnet.lib

See Also

Reference

Connection Manager Connectivity Functions
CM_PRIORITY
CM_SESSION_HANDLE