次の方法で共有


SimGetPhonebookCapabilities (Compact 2013)

3/26/2014

The SimGetPhonebookCapabilities function gets the phone book capabilities of the SIM. This function is part of the SIM Manager API set that enables access to information stored on the SIM or USIM card.

Syntax

HRESULT SimGetPhonebookCapabilities(
HSIM hSim,
LPSIMPHONEBOOKCAPS lpCapabilities
);

Parameters

  • hSim
    Points to a valid HSIM handle.

Return Value

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

Example

HRESULT hr;
HSIM    hSim;
hr = SimInitialize( SIM_INIT_NONE, NULL, 0, &hSim );
SIMPHONEBOOKCAPS simPhonebookCaps;
simPhonebookCaps.cbSize   = sizeof( simPhonebookCaps );
simPhonebookCaps.dwParams = SIM_PARAM_PBCAPS_ALL;

hr = SimGetPhonebookCapabilities( hSim, &simPhonebookCaps ); 

// Finished using the SIM Manager
hr = SimDeinitialize( hSim );

Requirements

Header

simmgr.h

Library

sim.lib

See Also

Reference

SIM Manager Functions
SIMPHONEBOOKCAPS