Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Check if the device just have been hard reset

0 views
Skip to first unread message

Eugene

unread,
Oct 12, 2006, 10:22:01 AM10/12/06
to
Is it possible to check if the Windows CE 4.2 device was hard reset after the
previous launch of the program so the program could restore some system
parameters on that condition? Let's assume that the program is installed on
flash, so it wont be deleted on reset.

And no, unfortunatelly it is impossible not to check for that hypothetical
"hard reset flag" and restore them at each run as process of restoring
requires a soft reset.

Thank you in advance for any ideas.

Frank Steinmetzger

unread,
Oct 12, 2006, 10:51:44 AM10/12/06
to
12.10.2006 16:22, Eugene schrob:

> Is it possible to check if the Windows CE 4.2 device was hard reset after the
> previous launch of the program so the program could restore some system
> parameters on that condition? Let's assume that the program is installed on
> flash, so it wont be deleted on reset.

You could check for the number of soft resets performed. There is some
value in the registry that gets increased each time the soft reset is
invoked (which is rumored to be quite often on Windows devices *d&r*)
--
Gruß | Greetings | Qapla' - http://www.stud.tu-ilmenau.de/~frst-ii/
No user was harmed by sending this Outlook-free message.

read and learn: http://www.netmeister.org/news/learn2quote.html

<ctacke/>

unread,
Oct 12, 2006, 11:29:57 AM10/12/06
to
Check the registry:

[HKEY_LOCAL_MACHINE\COMM]
BootCount = ??

--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Eugene" <Eug...@discussions.microsoft.com> wrote in message
news:69CBC314-C8D9-4AC0...@microsoft.com...

0 new messages