Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The SimGetSmsStorageStatusfunction gets the status of a Short Message Service storage location. This function is part of the SIM Manager API set that enables access to information stored on the SIM card.

Syntax

HRESULT SimGetSmsStorageStatus (
  HSIM 
hSim,
  DWORD 
dwStorage,
  LPDWORD 
lpdwUsed,
  LPDWORD 
lpdwTotal
);

Parameters

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

lpdwUsed

Pointer to the number of locations used.

lpdwTotal

Pointer to the total number of locations.

Return Value

HRESULTs are either S_OK for success, or one of the SIM_Eerror constants defined in the SIM Manager Error Constantstable.

Remarks

This is a privileged function.

Requirements

Header simmgr.h
Library cellcore.lib
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also