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

Re: Locking / Unlocking Device by notrash_2004

notrash_2004
Thu Jul 24 00:36:17 CDT 2008

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


Re: Locking / Unlocking Device by Cedric

Cedric
Thu Jul 24 01:01:02 CDT 2008

Thanks, my Target is a WM6.1 (HTC Diamond) so, I could try the API

Any idea how to unlock?

"notrash_2004" wrote:

> 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
>
>

Re: Locking / Unlocking Device by notrash_2004

notrash_2004
Fri Jul 25 01:46:11 CDT 2008

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

--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/pocketpc-prog/200807/1