SimGetPhoneLockedState (Compact 2013)
3/26/2014
The SimGetPhoneLockedState function checks whether the SIM is currently awaiting a password. This function is part of the SIM Manager API set that enables access to information stored on the SIM card.
Note
PUK is the code to unlock your SIM if you forget the password.
Syntax
HRESULT SimGetPhoneLockedState (
HSIM hSim,
LPDWORD lpdwLockedState
);
Parameters
- hSim
Points to a valid HSIM handle.
- lpdwLockedState
A pointer to a SIM Manager Locked State Constants value.
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
SIM Manager Locked State Constants