SimUnlockPhone (Compact 2013)
3/26/2014
This function unlocks the phone with a password.
Syntax
HRESULT SimUnlockPhone (
HSIM hSim,
LPTSTR lpszPassword,
LPTSTR lpszNewPin
);
Parameters
- hSim
Points to a valid HSIM handle.
- lpszPassword
Points to a password string.
- lpszNewPin
Points to a second password string. Some locked states require a second password. For example, a pointer to an unknown (PUK) requires a new PIN to replace the old, presumably forgotten, PIN. The values can be NULL.
Return Value
HRESULT is S_OK for success, or one of the SIM_E error constants defined in the SIM Manager Error Constants table.
Remarks
Requirements
Header |
simmgr.h |
Library |
sim.lib |
See Also
Reference
SIM Manager Functions
SIMLOCKINGPWDLENGTH
SimGetPhoneLockedState