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 (permalink)  
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
Sponsored Links
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Mobile - Interview FAQ prasannavigneshr Interview Questions & Answers and Tips 15 01-24-2008 04:48 AM
Windows Mobile Tweaks prasannavigneshr Windows Mobile 162 11-15-2007 09:56 PM
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 02:21 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0