hard reset to w.m. 5.0

  • Thread starter Thread starter SHaul
  • Start date Start date
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
 
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.
 
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.
 
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
 
Back
Top