Force device restart?

  • Thread starter Thread starter rpatel4
  • Start date Start date
R

rpatel4

Is there a way to programmatically force a device hard restart -- the
same effect that pulling/inserting the battery has?
 
If you search, using GoogleGroups advanced groups search in the group list
microsoft.public.windowsce.*, for this information, you should find
IOCTL_HAL_REBOOT, however, it's not necessarily true that all devices will
implement this.

I don't see a wrapper for it in OpenNETCF, but KernelIoControl(), which is
what you pass this value to, is wrapped, so that's probably a decent place
to start. There's also this thread in the archives of this group:

http://groups.google.com/group/micr...&q="hard+reset"&rnum=1&hl=en#5f57043a3ad2e687

Paul T.
 
Thanks for the info Paul.
Paul said:
If you search, using GoogleGroups advanced groups search in the group list
microsoft.public.windowsce.*, for this information, you should find
IOCTL_HAL_REBOOT, however, it's not necessarily true that all devices will
implement this.

I don't see a wrapper for it in OpenNETCF, but KernelIoControl(), which is
what you pass this value to, is wrapped, so that's probably a decent place
to start. There's also this thread in the archives of this group:

http://groups.google.com/group/micr...&q="hard+reset"&rnum=1&hl=en#5f57043a3ad2e687

Paul T.
 
Back
Top