View a printable version of the current page.
  Wiki > Symbian Developer Network Public Wiki > ... > Example source code > Lock phone from code
  Lock phone from code
Added by alie, last edited by rodders on Feb 15, 2008  (view change)
Labels: 
(None)

The following code can be used to lock the keypad with RAknKeyLock class

RAknKeyLock keyLock;
User::LeaveIfError(keyLock.Connect());
CleanupClosePushL(keyLock);
keyLock.EnableKeyLock();
keyLock.Close();
CleanupStack::PopAndDestroy();
Interactive Services Terms & Conditions of use | Terms of use | Privacy policy | Media Center | Contact us | © 2008 Symbian