hard reset to w.m. 5.0

S

SHaul

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
 
S

SHaul

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.
 
S

SHaul

Havent secceded yet.

Anyone knows how to hard reset wm 5 with code?

Many Thanks

Shaul
 
R

Robert Levy [MS]

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.
 
J

jon

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top