PC Review


Reply
Thread Tools Rate Thread

calling soft reset from within your code.

 
 
Ravi
Guest
Posts: n/a
 
      4th Dec 2003
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
 
Reply With Quote
 
 
 
 
Maarten Struys, eMVP
Guest
Posts: n/a
 
      4th Dec 2003
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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
soft reset on power on a@b.com Microsoft Dot NET Compact Framework 1 27th Jun 2006 12:55 PM
Soft Reset and Intercepting a Hard Reset windows ce 4.2 .net c# tristanbannon@gmail.com Microsoft Dot NET Compact Framework 3 13th Mar 2006 09:35 PM
Using Emulator: Hard Reset, Soft Reset, Turn Off AlexAngAB@gmail.com Microsoft Dot NET Compact Framework 0 12th Oct 2005 02:15 AM
No hard & soft reset VindicatoR Windows XP Help 0 5th Apr 2004 02:07 PM
soft reset sheng shan Microsoft Dot NET Compact Framework 0 4th Aug 2003 01:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 PM.