有幾個應用程序,如服務包和修補程序,必須更換一個文件,這是在使用中,是無法。窗口,因此提供了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
相關搜索:系統啟動