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 SimReadPhonebookTagreads the name value for a given index and tag. This function is part of the SIM Manager API set that enables access to information stored on the USIM card.

Syntax

HRESULT SimReadPhonebookTag(
  HSIM 
hSim,
  DWORD 
dwTag,
  DWORD 
dwIndex,
	__out_ecount(cchNameSize) LPTSTR 
szName,
	DWORD 
cchNameSize
);

Parameters

hSim

Points to a valid HSIM handle.

dwTag

A SIM_PBTAG_* constant

Value Description

SIM_PBTAG_GROUP

Group name tag

SIM_PBTAG_NUMBER

Additional Number tag

dwIndex

Index of the tag to read.

szName

Returned name of tag.

cchNameSize

Size of name in characters.

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

See Also