Partager via


CmSetDataActivityState (Compact 2013)

3/26/2014

This function informs Connection Manager if the application will use hSession to send data soon.

Syntax

CM_RESULT CmSetDataActivityState(
    __in CM_SESSION_HANDLE      hSession,
    __in CM_DATA_ACTIVITY_STATE State);

Parameters

  • State
    [in] The current state of the connection.

Return Value

Value

Description

CMRE_SUCCESS

The operation completed successfully.

CMRE_INVALID_CONNECTION

No connection has been acquired for hSession.

CMRE_INVALID_PARAMETER

State is not CMDS_DORMANT or CMDS_ACTIVE.

CMRE_INVALID_SESSION

The hSession is not valid.

CMRE_UNEXPECTED

An unexpected failure occurred.

Requirements

Header

cmnet.h

See Also

Reference

Connection Manager Connectivity Functions
CM_DATA_ACTIVITY_STATE
CM_SESSION_HANDLE