Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

hard reset to w.m. 5.0

11 views
Skip to first unread message

SHaul

unread,
Jan 3, 2006, 7:35:12 AM1/3/06
to
hi

I would like to know how to hard reset a wm 5.0 device with code.
I know how to hard reset ppc 2003 , but the same code in wm 5.0 soft reset
the device insted of hard reset it.

Thanks

Shaul

Daniel Moth

unread,
Jan 3, 2006, 8:02:56 AM1/3/06
to

SHaul

unread,
Jan 3, 2006, 8:11:22 AM1/3/06
to
Thanks for the quick answer!
the existing approach is:

int IOCTL_HAL_REBOOT = 0x101003C;

int bytesReturned = 0;

SetCleanRebootFlag();

KernelIoControl(IOCTL_HAL_REBOOT, IntPtr.Zero, 0, IntPtr.Zero, 0, ref
bytesReturned );

[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 HardResetHandler()

worsk on 2003.

"Daniel Moth" <dmo...@hotmail.com> wrote in message
news:uo0SMYGE...@tk2msftngp13.phx.gbl...

SHaul

unread,
Jan 3, 2006, 11:19:45 AM1/3/06
to
Havent secceded yet.

Anyone knows how to hard reset wm 5 with code?

Many Thanks

Shaul

"Daniel Moth" <dmo...@hotmail.com> wrote in message
news:uo0SMYGE...@tk2msftngp13.phx.gbl...

Robert Levy [MS]

unread,
Jan 3, 2006, 3:21:29 PM1/3/06
to
Unfortunately, SetCleanRebootFlag does not work with the new persistent
storage file system on WM 5.0 so there's no way to programmatically do a
hard-reset. We're looking into ways to solve this in future releases.

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

"SHaul" <sh...@ipocket.gilsar.com> wrote in message

news:O5JhEGIE...@TK2MSFTNGP14.phx.gbl...

SHaul

unread,
Jan 4, 2006, 2:26:13 AM1/4/06
to
Many Thanks

We will wait for future releases...

Shaul

"Robert Levy [MS]" <rl...@online.microsoft.com> wrote in message
news:uG5xJNKE...@TK2MSFTNGP14.phx.gbl...

j...@nettsoft.no

unread,
Jan 5, 2006, 5:28:18 PM1/5/06
to
It sounds strange that there's no way to programmatically do a
hard-reset.
Take a look at the program Clearstorage.exe. This does the same as a
hard-reset. You will find it in the windows-folder.

Jon

Robert Levy [MS]

unread,
Jan 5, 2006, 8:10:06 PM1/5/06
to
That must have come from the OEM of your device - it's not standard.

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

<j...@nettsoft.no> wrote in message
news:1136500098.6...@o13g2000cwo.googlegroups.com...

0 new messages