Here is a sample how to do this from eVC++ for a PocketPC:
http://www.pocketpcdn.com/articles/softreset.html.
Since you are using the .NET CF you need to P/Invoke KernelIOControl or use
the OpenNETCF WinAPI, see
http://www.opennetcf.org/winapi.asp.
I am not sure if this works for any Windows CE device, but you could give it
a try.
In your managed application you can define IOCTL_HAL_REBOOT as follows:
const Int32 METHOD_BUFFERED = 0;
const Int32 FILE_ANY_ACCESS = 0;
const Int32 FILE_DEVICE_HAL = 0x00000101;
Int32 IOCTL_HAL_REBOOT = ((FILE_DEVICE_HAL) << 16) |
((FILE_ANY_ACCESS) << 14) | ((15) << 2) | (METHOD_BUFFERED);
--
Regards,
Maarten Struys, eMVP
PTS Software bv
"Ravi" <(E-Mail Removed)> wrote in message
news:d32701c3baaf$156e5020$(E-Mail Removed)...
> I'm looking to have a button in my code which forces a
> soft reset
> i am not sure if this even possible and was wondering if
> anyone out there has any input.
> thanks
> Ravi