次の方法で共有


SimReadPhonebookEntries (Compact 2013)

3/26/2014

The SimReadPhonebookEntries function 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.

Syntax

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

Parameters

  • hSim
    Points to a valid HSIM handle.
  • 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 SIMPHONEBOOKENTRYEX structures returned in lpEntries.
  • lpEntries
    Buffer to hold an array of SIMPHONEBOOKENTRYEX structures 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 lpEntries parameter to retrieve the entries.

Return Value

HRESULT is S_OK for success, or one of the SIM_E error constants defined in the SIM Manager Error Constants table.

Requirements

Header

simmgr.h

Library

sim.lib

See Also

Reference

SIM Manager Functions
SIMPHONEBOOKENTRY
SIM Manager PhoneBook Storage Constants