> Now i want to remove FILE_SHARE_WRITE ShareAccess at run time ( on the
> fly ).
> and i also want to set FILE_SHARE_WRITE when ever i want.
>
> I need api or file system IOCTL or any other possible way to do it.
Strange...You need to write a file system filter driver and manage the
sharing on the file yourself. There's no way to force the FS to do what
you're asking for here.
If you tell us what you're trying to accomplish there might be an easier
solution for you.
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
"siddu" <> wrote in message
news:556A026E-3C50-47CD-BB62-...
> Hi all,
>
>
> I opened the usermode file in my driver using zwcreatefile with
> FILE_SHARE_READ
> and FILE_SHARE_Write access . i mount my file as a virtual volume.
> Now i want to remove FILE_SHARE_WRITE ShareAccess at run time ( on the
> fly ).
> and i also want to set FILE_SHARE_WRITE when ever i want.
>
> I need api or file system IOCTL or any other possible way to do it.
>
> thanks.
>
>
>
>
>
>
>