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