Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SimGetLockingStatus

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

The SimGetLockingStatus function gets the locking status of the phone. This function is part of the SIM Manager API set that enables access to information stored on the SIM card.


HRESULT SimGetLockingStatus (
  HSIM hSim,
  DWORD dwLockingFacility,
  LPTSTR lpszPassword,
  BOOL* pfEnabled
);
hSim

Points to a valid HSIM handle.

dwLockingFacility

A SIM_LOCKFACILITY constant.

Value Description

SIM_LOCKFACILITY_CNTRL

Lock control surface

SIM_LOCKFACILITY_PH_SIM

Lock phone to SIM card

SIM_LOCKFACILITY_PH_FSIM

Lock phone to first SIM card

SIM_LOCKFACILITY_SIM

Lock SIM card

SIM_LOCKFACILITY_SIM_PIN2

Lock SIM card

SIM_LOCKFACILITY_SIM_FIXEDIALING

SIM fixed dialing memory

SIM_LOCKFACILITY_NETWORKPERS

Network personalization

SIM_LOCKFACILITY_NETWORKSUBPERS

Network subset personalization

SIM_LOCKFACILITY_SERVICEPROVPERS

Service provider personalization

SIM_LOCKFACILITY_CORPPERS

Corporate personalization

lpszPassword

A pointer for some facilities that require a password.

pfEnabled

A pointer to a Boolean value that indicates enabled or disabled. TRUE = enabled FALSE = disabled

HRESULTs are either S_OK for success, or one of the SIM_E error constants defined in the SIM Manager Error Constants table.

Headersimmgr.h
Librarycellcore.lib
Windows Embedded CEWindows Embedded CE 6.0 and later
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.