Compartilhar via


CM_NOTIFICATION_TYPE (Compact 2013)

3/26/2014

This enumeration defines notifications describing progress in connecting a session. Clients registering for this notification should expect to receive both: CM_NOTIFICATION::SelectionProgress and CM_NOTIFICATION::StateUpdate.

Syntax

typedef enum CM_NOTIFICATION_TYPE
{
    CMNT_ALL = 0,

    CMNT_CONNECTION_STATE = 100,
    CMNT_CONNECTION_STATE_CONNECTED,
    CMNT_CONNECTION_STATE_DISCONNECTED,
    CMNT_CONNECTION_STATE_LAST,

    CMNT_CHARACTERISTIC_UPDATE = 200,
    CMNT_CHARACTERISTIC_UPDATE_LAST,

    CMNT_CONNECTION_NETWORK_TYPE = 300,
    CMNT_CONNECTION_NETWORK_TYPE_LAST,

    CMNT_CONNECTION_TYPE_SPECIFIC = 400,
    CMNT_CONNECTION_TYPE_SPECIFIC_LAST,

    CMNT_CONNECTION_CONFIGURATION = 500,
    CMNT_CONNECTION_CONFIGURATION_ADDED,
    CMNT_CONNECTION_CONFIGURATION_UPDATED,
    CMNT_CONNECTION_CONFIGURATION_DELETED,
    CMNT_CONNECTION_CONFIGURATION_LAST,

    CMNT_SESSION_CONNECT_RETRY = 600,
        CMNT_SESSION_CONNECT_RETRY_LAST,

    CMNT_SESSION_CONNECTION_SELECTION_PROGRESS = 700,
        CMNT_SESSION_CONNECTION_SELECTION_PROGRESS_LAST,
    CMNT_LAST

} CM_NOTIFICATION_TYPE;

Element Definitions

  • CMNT_ALL = 0
    When registering for notifications, use this enumeration to be notified of all possible status changes.
  • CMNT_CONNECTION_STATE = 100
    The connection state was updated.
  • CMNT_CONNECTION_STATE_CONNECTED
    The connection state has changed to "connected".
  • CMNT_CONNECTION_STATE_DISCONNECTED
    The connection state has changed to "disconnected".
  • CMNT_CONNECTION_STATE_LAST
    The last connection state value
  • CMNT_CHARACTERISTIC_UPDATE = 200
    A connection characteristic was updated.
  • CMNT_CHARACTERISTIC_UPDATE_LAST
    The last characteristic update value
  • CMNT_CONNECTION_NETWORK_TYPE = 300
    The network type was updated.
  • CMNT_CONNECTION_NETWORK_TYPE_LAST
    The last network type value
  • CMNT_CONNECTION_TYPE_SPECIFIC = 400
    Type specific information was updated for a connection.
  • CMNT_CONNECTION_TYPE_SPECIFIC_LAST
    The last type specific value
  • CMNT_CONNECTION_CONFIGURATION = 500
    The connection configuration was updated.
  • CMNT_CONNECTION_CONFIGURATION_ADDED
    A connection configuration was added.
  • CMNT_CONNECTION_CONFIGURATION_UPDATED
    A connection configuration was updated.
  • CMNT_CONNECTION_CONFIGURATION_DELETED
    A connection configuration was deleted.
  • CMNT_CONNECTION_CONFIGURATION_LAST
    The last connection configuration value
  • CMNT_SESSION_CONNECT_RETRY = 600
    A new or existing connection has become available and connection to it may be retried.
  • CMNT_SESSION_CONNECT_RETRY_LAST
    The last connect retry value
  • CMNT_SESSION_CONNECTION_SELECTION_PROGRESS = 700
    The connection is being selected.
  • CMNT_SESSION_CONNECTION_SELECTION_PROGRESS_LAST
    The last selection progress value
  • CMNT_LAST
    The last value

Requirements

Header

cmnet.h

Library

cmnet.lib

See Also

Reference

Connection Manager Status and Notification Enumerations