I've read "A file cannot be renamed if a file with the same name exists and has open handles", from "FILE_RENAME_INFORMATION structure" documentation, in "Special rules for renaming open files" section.
So I have tried to create one hardlink on the file "with the same name" before the rename, and surprise, if the hardlink is opened, the rename operation fail.
May someone explain me why ?
It looks like you're new here. If you want to get involved, click one of these buttons!
|Upcoming OSR Seminars|
|Writing WDF Drivers||21 Oct 2019||OSR Seminar Space & ONLINE|
|Internals & Software Drivers||18 Nov 2019||Dulles, VA|
|Kernel Debugging||30 Mar 2020||OSR Seminar Space|
|Developing Minifilters||27 Apr 2020||OSR Seminar Space & ONLINE|