.NET CF & Hardreset - still not possible?

  • Thread starter Thread starter Rampf
  • Start date Start date
R

Rampf

Hello

Is it really not possible to perform a hardreset with newer devices using
..NET CF?

Thanks

Rampf
 
Has nothing to do with CF or native code. If the OEM provides a capability
to do it, then you can. If they don't you can't. Can't see really any good
reason for an application to ever hard reset - that would effectively erase
the application itself - unless you're in ROM, and in that case you're
probably the OEM and you'd have a hook to do the hard reset anyway.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
Thanks Chris

It would be a security feature for our devices to remotly wipe the device....

"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> schrieb im Newsbeitrag




- Show quoted text -

You'll have to speak to your device manufaturer on which you are
supporting your application to provide you API to hard reset the
phone. There is a way to do it but i think this won't work on all the
devices.

try following if it helps you.

SetCleanRebootFlag();
KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);
 
As Chris said, the OEM has provide capability to do it. SetCleanRebootFlag()
will work in the emulator but not in most devices (especially device running
WM5)

In Windows Mobile 6 you can use the RemoteWipe CSP. P/Invoke
DMProcessConfigXML from aygshell.dll and pass this:

<wap-provisioningdoc>
<characteristic type="RemoteWipe">
<parm name="doWipe" value="1"/>
</characteristic>
</wap-provisioningdoc>

as the XML configuration data. If the app is trusted then the device will
immediately do a cold reboot after executing the command.

Here's an MSDN link to DMProcessConfigXML
http://msdn2.microsoft.com/en-us/library/ms852998.aspx


--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com


Thanks Chris

It would be a security feature for our devices to remotly wipe the
device...

"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> schrieb im
Newsbeitrag




- Show quoted text -

You'll have to speak to your device manufaturer on which you are
supporting your application to provide you API to hard reset the
phone. There is a way to do it but i think this won't work on all the
devices.

try following if it helps you.

SetCleanRebootFlag();
KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);
 
No need to platform invoke DMProcessConfigXML from WM5 and onwards as its
supported with this method:
Microsoft.WindowsMobile.Configuration.ConfigurationManager.ProcessConfiguration()
 
Back
Top