共用方式為


SMSREGISTRATIONDATA

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This is a registration structure that is used by SmsSetMessageNotification and SmsClearMessageNotification calls. This structure is passed in when registering for Short Message Service (SMS) notifications.

Syntax

typedef struct smsregistrationdata_tag {
    DWORD cbSize;
    TCHAR tszAppName[SMS_MAX_APPNAME_LENGTH];
    TCHAR tszParams[SMS_MAX_PARAMS_LENGTH];
    TCHAR tszProtocolName[SMS_MAX_PROTOCOLNAME_LENGTH];
} SMSREGISTRATIONDATA, *LPSMSREGISTRATIONDATA;

Members

  • cbSize
    The size of the structure in bytes.
  • tszAppName
    The name of the application that should be run to retrieve the incoming message.
  • tszParams
    Command line parameters to pass to the application.
  • tszProtocolName
    A string indicating which message type to notify the application about. Possible values are listed in the following table.

    Value Description

    SMS_MSGTYPE_BROADCAST

    Microsoft Broadcast Message SMS Protocol (Receive Only)

    SMS_MSGTYPE_TEXT

    Microsoft Text SMS Protocol

    SMS_MSGTYPE_NOTIFICATION

    Microsoft Notification SMS Protocol (Receive Only)

    SMS_MSGTYPE_WDP

    Microsoft WDP SMS Protocol

    SMS_MSGTYPE_WCMP

    Microsoft WCMP SMS Protocol

    SMS_MSGTYPE_STATUS

    Microsoft Status Message SMS Protocol (Receive Only)

    SMS_MSGTYPE_RAW

    Microsoft Raw SMS Protocol (Receive Only)

Requirements

Header sms.h
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Reference

Short Message Service Structures
SmsSetMessageNotification
SmsClearMessageNotification