Type of IRP_MJ_CREATE ioctl - when a file is being opened for editing ?

Hi All…
I’m developing a FSD using IFS. My device is an virtual disk…
every operation is handled without allowing to go down to the disk
driver and the data comes from the web-service. Everything works fine
except editing the files thru explroer or any other Windows-apps. I’m
reparsing the FILE CREATE requests to a local disk. But it downloads the
file each time I get a IRP_MJ_CREATE ioctl, which I don’t want to do. I
want to download the file only when the user double-clicks on the file
or opens from the windows-Apps…

For eg:

W: is my virtual disk…

If I open a file at “w:\test\file1.txt”, my device would
reparse it as “\??\c:\myfolder\file1.txt”. after this everything
works fine. But actually the file is downloaded when ever I get a
IRP_MJ_CREATE request for that file, as we know IRP_MJ_CREATE may come
so many times even for displaying the file information, etc…

But what I wanted to do is… I want to download the file only when the
user double-clicks on that file or opens it from any Application…

All I need is to know what kind of IRP_MJ_CREATE (flags and attributes
combination) ioctl comes to device when the file is actually being
opened for editing.???

Any help or suggestions will be highly appreciated… thanks in
advance…

–Regards
K.Raju

Type of IRP_MJ_CREATE ioctl - when a file is being opened for editing ?Oh bad luck; you wont see the kind of information you wish in IRP_MJ_CREATE so … time to think again!
“Krishnama Raju” wrote in message news:xxxxx@ntfsd…
Hi All…
I’m developing a FSD using IFS. My device is an virtual disk… every operation is handled without allowing to go down to the disk driver and the data comes from the web-service. Everything works fine except editing the files thru explroer or any other Windows-apps. I’m reparsing the FILE CREATE requests to a local disk. But it downloads the file each time I get a IRP_MJ_CREATE ioctl, which I don’t want to do. I want to download the file only when the user double-clicks on the file or opens from the windows-Apps…

For eg:

W: is my virtual disk.

If I open a file at “w:\test\file1.txt”, my device would reparse it as “\??\c:\myfolder\file1.txt”. after this everything works fine. But actually the file is downloaded when ever I get a IRP_MJ_CREATE request for that file, as we know IRP_MJ_CREATE may come so many times even for displaying the file information, etc…

But what I wanted to do is… I want to download the file only when the user double-clicks on that file or opens it from any Application…

All I need is to know what kind of IRP_MJ_CREATE (flags and attributes combination) ioctl comes to device when the file is actually being opened for editing.???

Any help or suggestions will be highly appreciated… thanks in advance…

–Regards
K.Raju