有几个应用程序,如服务包和修补程序,必须更换一个文件,这是在使用中,是无法。窗口,因此提供了MoveFileEx API重命名或删除一个文件,并允许调用者指定他们想要的操作发生在下一次系统启动之前,被引用的文件。阅读注册的重命名和删除命令的HKLM \ SYSTEM \ CurrentControlSet\控制\会话管理\ PendingFileRenameOperations价值的会话管理器执行这项任务。
There are several applications, such as service packs and hotfixes, that must replace a file that's in use and is unable to. Windows therefore provides the MoveFileEx API to rename or delete a file and allows the caller to specify that they want the operation to take place the next time the system boots, before the files are referenced. Session Manager performs this task by reading the registered rename and delete commands from the HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations value.
官方网站:http://technet.microsoft.com/en-us/sysinternals/bb897556
相关搜索:系统启动