I am trying to create a file system driver with Dokan. But now I got confused about if I should handle the complex stuff myself.
Some examples:
- Two consecutive calls to
CreateFile()
with sharing mode set to0
. - Delete a opened file(without
FILE_SHARE_DELETE
set). - Request
FILE_GENERIC_WRITE
access when the file has been opened withFIlE_SHARE_READ
.
In these conditions, Windows will obviously return an error. But I'm not sure it will be automatically handled by the Windows kernel or is the duty of my file system application.