Share via


SMS Specific Errors

These are errors specific to the SMS module.

Registration Errors

These errors apply to the SmsSetMessageNotification and SmsClearMessageNotification functions.

Name Description
SMS_E_INVALIDPROTOCOL SMS protocol does not exist.
SMS_E_REGISTRATIONEXISTS Protocol is already set for notification.
SMS_S_NOSUCHREGISTRATION Notification is not set for that protocol.

Messaging Errors

These errors apply to the SmsOpen, SmsSendMessage, and SmsGetSMSC functions.

Name Description
SMS_E_TOOMUCHDATA The data passed into SmsSendMessage was too large and could not be properly encoded and sent out. For example, datagram packets get 140 bytes per SMS message fragment with a Global System for Mobile Communications (GSM-imposed) limit of 255 message fragments — therefore any request to send more than 35,700 bytes will be impossible to satisfy and this error will be returned.
SMS_E_INVALIDDATA The data passed into SmsSendMessage was invalid. For example, attempting to send Unicode characters (which means that 2 bytes are needed per character) and providing an odd number of bytes of data will generate this error.
SMS_E_BUFFERTOOSMALL The size of the buffer passed into SmsReadMessage was too small to read the data available. The caller may not have previously called SmsGetMessageSize in order to determine the necessary buffer size.
SMS_E_PROVIDERSPECIFICBUFFERWRONGSIZE The size of the provider-specific buffer passed into SmsSendMessage or SmsReadMessage was incorrect. For example, when calling SmsOpen with type SMS_MESSAGE_TEXT, the provider-specific buffer passed in by the caller must be of type TEXT_PROVIDER_SPECIFIC_DATA and have the size of that structure – other sizes are incorrect and will cause this error to be returned.
SMS_E_TIMEUNAVAILABLE The Short Message Service Center (SMSC) Timestamp is currently unavailable. This is usually the case if the necessary prerequisites for SmsGetTime have not yet taken place. See the documentation for SmsGetTime for more details.
SMS_E_UNKNOWNSCADDRESS The SMSC address is unknown.
SMS_E_RECEIVEHANDLEALREADYOPEN Only one handle per provider may be open for read access by any application at one time.
SMS_E_DESTINATIONOUTOFSVC The message could not be delivered because the destination equipment is out of service.
SMS_E_INVALIDADDRESS The specified address is invalid.
SMS_E_MSGBARREDBYOPERATOR The operator barred (blocked) the message send attempt.
SMS_E_MSGCALLBARRED Outgoing calls are barred so message sending was prevented.
SMS_E_NOSCSUBSCRIPTION No message Service Center subscription.
SMS_E_SCBUSY The message Service Center is busy.
SMS_E_SVCNOTSUBSCRIBED The sender is not subscribed to the requested messaging service.
SMS_E_UNASSIGNEDNUMBER The address specified as the message destination is currently an unassigned phone number.
SMS_E_UNIDENTIFIEDSUBCRIBER The sender's mobile ID is not registered.

Requirements

Pocket PC Platforms: Pocket PC 2002 and later
OS Versions: Windows CE 3.0 and later
Header: sms.h
Library: sms.lib

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.