WriteFile,NtWriteFile return error 5 (ACCESS_DENIED) and IRP_MJ_WRITE is not called

The IRP_MJ_WRITE is not called in my virtual disk filesystem if a file is shared network

I tested with FileTest , don’t work but IRP_MJ_WRITE is called if ‘DesiredAccess’ passed into ‘NtCreateFile’ has not bit DELETE (0x10000).

I have this problem only if it’s a file from shared directory of my virtual disk.

I had shared the directory with right write, read with the user ‘everyone’

Thank you for help.