Windows – 防止硬重置删除WIN7下的注册表更改?

前端之家收集整理的这篇文章主要介绍了Windows – 防止硬重置删除WIN7下的注册表更改?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在通过我的软件编辑 Windows注册表,例如它取代了Shell(Kiosk应用程序).

现在我注意到在Win7下如果发生硬重置(重置按钮或4秒电源按钮),所有注册表更改都将丢失.

在WinXP下,它工作正常,即使在硬重置后我所做的更改仍然存在.

在Win7下编辑注册表后我是否需要做一些特殊的事情,或者这甚至可能是内置的Win7安全功能

对我来说,看起来注册表更改没有最终确定,只是保存在内存中,直到发生软复位,这可能是真的吗?如果是这样,我可以以某种方式强制保存吗?

听起来你想要 RegFlushKey功能.

The RegFlushKey@H_403_16@ function returns only when all the data for the hive that contains the specified key has been written to the registry store on disk.

The RegFlushKey@H_403_16@ function writes out the data for other keys in the hive that have been modified since the last lazy flush or system start.

猜你在找的Windows相关文章