次の方法で共有


SimGetLockingStatus (Compact 2013)

3/26/2014

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.

Syntax

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

Parameters

  • hSim
    Points to a valid HSIM handle.
  • lpszPassword
    A pointer to the password, which is limited to MAXLENGTH_PASSWORD chars, and not less than the number of characters in the SIMLOCKINGPWDLENGTHdwPasswordLength parameter for the dwLockingFacility.
  • pfEnabled
    A pointer to a Boolean value that indicates enabled or disabled. TRUE = enabled FALSE = disabled

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
SIMLOCKINGPWDLENGTH
Maximum Lengths Constants
SIM Manager Lock Facility Constants
SimChangeLockingPassword
SimSetLockingStatus