冷启动的Windows Mobile 6.5设备编程方式使用C# [英] Cold Boot Windows Mobile 6.5 Device Programmatically Using C#

查看:318
本文介绍了冷启动的Windows Mobile 6.5设备编程方式使用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到有关IOCTL很多code,我试图用一些code,显示通过设置启动Windows Mobile设备如何冷 SetCleanRebootFlag() INT IOCTL_HAL_REBOOT = 0x101003C; ,但它不重置在HKLM \通讯\ BootCount的引导计数,这就是快捷地为我检查冷启动(应重置为0)。有人能告诉我$ C $下一个冷启动?我引用code我从这里使用:<一href="http://stackoverflow.com/questions/3437963/reboot-windows-mobile-6-x-device-programmatically-using-c-sharp">Reboot的Windows Mobile 6.x的设备编程方式使用C#

I've seen a lot of code regarding the IOCTL and I tried using some code that shows how to cold boot a Windows Mobile device by setting SetCleanRebootFlag() and int IOCTL_HAL_REBOOT = 0x101003C; but it doesn't reset the boot count under HKLM\Comm\BootCount and that's the quick way for me to check cold boot (should be reset to '0'). Can someone show me code for a 'cold boot'? I'm referencing code I've used from here: Reboot Windows Mobile 6.x device programmatically using C#

问候,斯科特

推荐答案

这计数器不复位至零与具有永久注册表(大多数Windows Mobile设备的因为WM5有此)。请问您的设备有一个?

That counter isn't reset to zero with devices that have a persistent registry (most Windows Mobile devices since WM5 have this). Does your device have one?

您的CPU可能有一个状态寄存器表示最后一次重新启动的原因。您可以尝试检查。交替,您的OEM可能提供一个IOCTL用于同样的目的。

Your CPU may have a status register indicating the cause of the last reboot. You can try checking that. Alternately, your OEM may have provided an IOCTL for the same purpose.

一个干净的注册表需要一个干净启动。有执行干净启动在Windows Mobile设备没有标准的方式。您必须参考您的OEM此提供的文档。

A clean registry requires a "clean boot". There is no standard way of performing a clean boot on windows mobile devices. You will have to refer to your OEM provided documentation for this.

如果你只是想重启设备,我使用 SetSystemPowerState

If you just want to reboot the device, I use SetSystemPowerState:

::SetSystemPowerState( NULL, POWER_STATE_RESET, POWER_FORCE );

-PaulH

-PaulH

这篇关于冷启动的Windows Mobile 6.5设备编程方式使用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆