SimWriteMessage

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

The SimWriteMessage function writes an Short Message Service (SMS) message to a particular storage location.

Aa917987.note(en-us,MSDN.10).gifNote:
Short Message Service (SMS) messages are always written to the first available storage location.

This function is part of the SIM Manager API set that enables access to information stored on the SIM card.


HRESULT SimWriteMessage (
  HSIM hSim,
  DWORD dwStorage,
  LPDWORD lpdwIndex,
  LPSIMMESSAGE lpSimMessage
);

hSim

Points to a valid HSIM handle.

dwStorage

A SIM_SMSSTORAGE constant.

Value Description

SIM_SMSSTORAGE_BROADCAST

Broadcast message storage location.

SIM_SMSSTORAGE_SIM

SIM storage location.

lpdwIndex

Set to the index where the message was written.

lpSimMessage

Points to an Short Message Service (SMS) message structure.

HRESULTs are either S_OK for success, or one of the SIM_E error constants defined in the SIM Manager Error Constants table.

This is a privileged function.

Headersimmgr.h
Librarycellcore.lib
Windows Embedded CEWindows Embedded CE 6.0 and later
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later

Community Additions

Show: