[Question] Can I set a file as ReadOnly attribute?

I have a question in my File System Filter Driver.

When an application opened the file(example, A.DOC),
my filter driver set A.DOC’s attribute as ReadOnly.
Because I want that the application cannot Write data to the file(A.DOC).
just only, can read it.

I have tried like below;
in IRP_MJ_WRITE, I make my filter driver to return SUCCESS_ACCESS_DENIED.
but, the result that I want did not occur.

and… Can I prevent the application to do “Save As”?

I am a newbie in Filter Driver.
May i ask your advise or help?

Thanks…