开发者

Detect Windows Automatic Updates

开发者 https://www.devze.com 2023-03-10 09:00 出处:网络
I have software that replaces core OS files. Problem is that Microsoft updates replace those files, rendering the program inoperative. How can I detect file re开发者_JAVA百科placement at boot time, du

I have software that replaces core OS files. Problem is that Microsoft updates replace those files, rendering the program inoperative. How can I detect file re开发者_JAVA百科placement at boot time, due to automatic updates?

My idea is a registry watch on some key, what key? Any other ideas?


Boot-time file replacements are done by smss.exe by referring PendingFileRenameOperations value under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager key. Also, AllowProtectedRenames should be set to 1 if files that are protected by Windows File Protection are going to be moved/deleted. Few resources that might be helpful:
http://msdn.microsoft.com/en-us/library/aa365240.aspx
http://www.techbytes.ca/techbyte101.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号