4 ms·
Depends on how they are opened. If they aren't opened in FILE_SHARE_DELETE mode, then they will in fact be locked against deletion... because that's exactly wh
by apankrat 7y ago
Depends on how they are opened.
If they aren't opened in FILE_SHARE_DELETE mode, then they will in fact be locked against deletion... because that's exactly what file's current user wanted. Force-deleting a file in this case is not the wisest thing to do.
[1] https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#parameters https://docs.microsoft.com/en-us/windows/win32/api/fileapi/n..., Ctrl-F for FILE_SHARE_DELETE