IT Community - Software Programming, Web Development and Technical Support

How to Soft Reset Windows Mobile 5.0 ?

This is a discussion on How to Soft Reset Windows Mobile 5.0 ? within the Windows Mobile forums, part of the Mobile Software Development category; How to Soft Reset Windows Mobile 5.0 ? DllImport("Coredll.dll")] extern static int KernelIoControl(int dwIoControlCode, IntPtr ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development > Windows Mobile

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 07-17-2007, 03:42 AM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Default How to Soft Reset Windows Mobile 5.0 ?

How to Soft Reset Windows Mobile 5.0 ?

DllImport("Coredll.dll")]
extern static int KernelIoControl(int dwIoControlCode,
IntPtr lpInBuf,
int nInBufSize,
IntPtr lpOutBuf,
int nOutBufSize,
ref int lpBytesReturned);
[DllImport("Coredll.dll")]
extern static void SetCleanRebootFlag();
public static void ResetDevice(bool l_Is_HardReset)
{
int IOCTL_HAL_REBOOT = 0x101003C;
int bytesReturned = 0;
if (l_Is_HardReset == true)
{
SetCleanRebootFlag();
}
KernelIoControl(IOCTL_HAL_REBOOT, IntPtr.Zero, 0, IntPtr.Zero, 0, ref bytesReturned);
}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Mobile Tweaks prasannavigneshr Windows Mobile 163 12-23-2008 08:02 PM
Windows Mobile - Interview FAQ prasannavigneshr Interview Questions & Answers and Tips 15 01-24-2008 04:48 AM
Win32 sockets in Windows mobile 5.0 mobilegeek Windows Mobile 2 10-29-2007 05:27 AM
How to fix the appointments in windows mobile using C#? mobilegeek C# Programming 3 08-20-2007 07:37 AM
New T-Mobile phone runs Windows Mobile 6 vadivelanvaidyanathan The Lounge 0 05-22-2007 08:19 AM


All times are GMT -7. The time now is 09:16 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0