CM_CSP_NOTIFICATION (Compact 7)
3/12/2014
This structure contains notification information that a Connection Service Provider sends to Connection Manager.
Syntax
typedef struct CM_CSP_NOTIFICATION {
DWORD Version;
WCHAR ConnectionName[CM_CONNECTION_NAME_LENGTH];
CM_CSP_NOTIFICATION_TYPE Type;
union
{
struct
{
CM_CONNECTION_STATE State;
}State;
struct
{
CM_CONNECTION_NETWORK_TYPE Network;
}NetworkType;
struct
{
CM_CHARACTERISTIC Characteristic; DWORD Value;
}Characteristic;
struct
{
DWORD cbData;
BYTE Data[1];
}TypeSpecific;
};
} CM_CSP_NOTIFICATION ;
Members
- Version
Version of this structure according to Connection Manager Common Constants.
- ConnectionName
The name of the connection.
- Type
The type of notification data (see CM_CSP_NOTIFICATION_TYPE).
- State
When the Type member value is CMPN_CONNECTION_STATE_CHANGE this member contains the CM_CONNECTION_STATE of the new state.
- NetworkType
When the Type member value is CMPN_CONNECTION_NETWORK_TYPE_CHANGE this member contains the CM_CONNECTION_NETWORK_TYPE of the network.
- Characteristic
When the Type member value is CMPN_CHARACTERISTIC_VALUE_CHANGE this member contains an attribute-value pair describing the connection.
- Characteristic.Characteristic
Connection attribute from CM_CHARACTERISTIC.
- Characteristic.Value
Value associated with the attribute specified in Characteristic.Characteristic.
- TypeSpecific
When the Type member value is CMPN_TYPE_SPECIFIC_NOTIFICATION this member contains the type-specific information.
- TypeSpecific.cbData
The byte length of the Data[1] member.
- TypeSpecific.Data
Data specific to the Connection Service Provider. This may be a pointer or data.
Requirements
Header |
cmcsp.h |
See Also
Reference
Connection Service Provider Structures
Connection Manager Common Constants
CM_CSP_NOTIFICATION_TYPE
CM_CONNECTION_STATE
CM_CONNECTION_NETWORK_TYPE
CM_CHARACTERISTIC