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 SimReadPhonebookEntriesfunction reads extended phone book entries on the SIM card. The extended phone book entries are specified by a starting index and the number of entries that need to be read. This function is part of the SIM Manager API set that enables access to information stored on the SIM or USIM card.

Syntax

HRESULT SimReadPhonebookEntries(
  HSIM 
hSim,
  DWORD 
dwLocation,
  DWORD 
dwStartIndex,
  LPDWORD 
lpdwCount,
  LPSIMPHONEBOOKENTRYEX 
lpEntries,
  LPDWORD 
lpdwBufferSize
);

Parameters

hSim

Points to a valid HSIM handle.

dwLocation

A phone book storage location value; equal to one of the SIM_PBSTORAGE constant values.

SIM_PBSTORAGE_EMERGENCY

Emergency dial list.

SIM_PBSTORAGE_FIXEDDIALING

SIM fixed dialing list.

SIM_PBSTORAGE_LASTDIALING

SIM last dialing list.

SIM_PBSTORAGE_OWNNUMBERS

SIM own numbers lists.

SIM_PBSTORAGE_SIM

General SIM Storage.

dwStartIndex

Starting index in the range of entries to retrieve.

lpdwCount

On input, the total number of entries to read starting from dwStartIndex. On output, if the function succeeds the actual number of SIMPHONEBOOKENTRYEXstructures returned in lpEntries.

lpEntries

Buffer to hold an array of SIMPHONEBOOKENTRYEXstructures and associated variable data.

lpdwBufferSize

On input, the number of bytes contained in the buffer pointed to by lpEntries. On output, if the function fails it contains the minimum number of bytes to pass for the lpEntriesparameter to retrieve the entries.

Return Value

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

Requirements

Header simmgr.h
Library cellcore.lib