冷启动的Windows Mobile 6.5设备编程方式使用C#方式、设备、冷启动、Mobile

由网友(相关六个字个性>>)分享简介:我看到有关IOCTL很多code,我试图用一些code,显示通过设置启动Windows Mobile设备如何冷 SetCleanRebootFlag()和 INT IOCTL_HAL_REBOOT = 0x101003C; ,但它不重置在HKLM \通讯\ BootCount的引导计数,这就是快捷地为我检查冷启动(应重...

我看到有关IOCTL很多code,我试图用一些code,显示通过设置启动Windows Mobile设备如何冷 SetCleanRebootFlag() INT IOCTL_HAL_REBOOT = 0x101003C; ,但它不重置在HKLM 通讯 BootCount的引导计数,这就是快捷地为我检查冷启动(应重置为0)。有人能告诉我$ C $下一个冷启动?我引用code我从这里使用: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 HKLMCommBootCount 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

阅读全文

相关推荐

最新文章