Hi All
I want to set some permission like(Read only or Read/Write) on USB, CD and i
am using createfile. But i am not able to set this kind of permission can i
have any clue.

with regards
RYK

RE: Regarding createfile by AntonBassov

AntonBassov
Tue Apr 17 03:56:02 CDT 2007

> I want to set some permission like(Read only or Read/Write) on USB, CD and i
> am using createfile. But i am not able to set this kind of permission

I would get surprized if you could, taking into consideration the fact that
CreateFile() ignores 'dwFlagsAndAttribute' if you use it for opening the
existing files - this parameter matters only if you are creating a new file.
If you want to change the attributes of some existing file, then you have to
use SetFileAttributes(). In any case, it is not going to work with volumes or
devices.....

Anton Bassov



"RYK" wrote:

> Hi All
> I want to set some permission like(Read only or Read/Write) on USB, CD and i
> am using createfile. But i am not able to set this kind of permission can i
> have any clue.
>
> with regards
> RYK