SimSetLockingStatus (Compact 2013)
3/26/2014
This function sets the locking status of the phone.
Syntax
HRESULT SimSetLockingStatus (
HSIM hSim,
DWORD dwLockingFacility,
LPTSTR lpszPassword,
BOOL fEnabled
);
Parameters
- hSim
Points to a valid HSIM handle.
- dwLockingFacility
A SIM Manager Lock Facility Constants value specifying which locking facility to use.
- 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.
- fEnabled
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
SIM Manager Lock Facility Constants
SimChangeLockingPassword
SimGetLockingStatus