Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / Windows Mobile / July 2008

Tip: Looking for answers? Try searching our database.

Locking / Unlocking Device

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cedric - 23 Jul 2008 12:26 GMT
Hello,

I'm trying to lock and unlock the device (Screen, Button) using the same
integrated mechanism that the default lock and lock by a passcode integrated
in the phone.

Any idea how to do that? Any P/Invoke?

Thx
notrash_2004 - 24 Jul 2008 06:36 GMT
Hello Cedric

Idont remember the exact key, but sending vk_f22 or vk_f24 should lock your
device. There is also an API call (something like shLockDevice) but this is
not implented on all WM5 devices.

regards

josef
Cedric - 24 Jul 2008 07:01 GMT
Thanks, my Target is a WM6.1 (HTC Diamond) so, I could try the API

Any idea how to unlock?

> Hello Cedric
>
[quoted text clipped - 5 lines]
>
> josef
notrash_2004 - 25 Jul 2008 07:46 GMT
Hello Cedric

although you can use the vk_ solution or the api to lock the device, you
cannot unlock the device programatically.
If you call the API or send the lock key value a second time the unlock
screen appears and a human can unlock the device.
Maybe you can simulate  screen taps and so unlock the device.

josef
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.