Problem with virtual folder

Hi all

I created a virtual folder,when i get irp_mj_create request i will download
the file from
a server.

Anything is working fine, but i have problem in windows explorer browse
the folder, when the mouse single click the file or mouse hover over the
file, it will generate the irp_mj_create request, it will get trouble for me
for some big files.

I already create the shell extension to handle the infotip,that means the
mouse hover over it won’t try to open the file. But i dont know how to
handle the file single click, what’s the different for single click and
double click.

Anyone have suggestion i will be very very appreciated!!!

Bin

Bin,

We had implemented the virtual folder concept with only Explorer NSE. I
never needed a filter driver to do part of the work for me. Can I ask you,
as to why you need a FS driver for this?

I am asking this for knowledge sake, maybe your answer will give me some
insight on why the name space extension method alone will not help.

Regards,

amitr0

Hi,amitr0

We use the filter driver is because some application use the file API,
for example, check file size, exist,info, browse the folder, open the file

all these we can handler from filter driver

We can’t use NSE becuase we won’t let the user do the file open in the
common
dialog go to the name space extension. we want it to like to open the normal
folder.

Do you have any idea?

Thanks

bin

From: amitr0
>Reply-To: “Windows File Systems Devs Interest List”
>To: “Windows File Systems Devs Interest List”
>Subject: Re: [ntfsd] Problem with virtual folder
>Date: Fri, 5 May 2006 20:55:22 +0530
>
>Bin,
>
>We had implemented the virtual folder concept with only Explorer NSE. I
>never needed a filter driver to do part of the work for me. Can I ask you,
>as to why you need a FS driver for this?
>
>I am asking this for knowledge sake, maybe your answer will give me some
>insight on why the name space extension method alone will not help.
>
>Regards,
>
>amitr0
>
>—
>Questions? First check the IFS FAQ at
>https://www.osronline.com/article.cfm?id=17
>
>You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
>To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Bin,

May be i am going somewhat out of actual question but i had similar problem
once in Win98 Filter driver. In that case i had observed that in case of
Single file click IFSFN_FINDOPEN is called and in case of double click,
after calling IFSFN_FINDOPEN it calls IFSFN_OPEN.

I do not know if this can help you or not, but there could be some similar
flag in IRP_MJ_CREATE that might tell you about such of difference.

Reggards,
Shreshth Luthra

On 5/5/06, Bin Zeng wrote:
>
> Hi,amitr0
>
> We use the filter driver is because some application use the file API,
> for example, check file size, exist,info, browse the folder, open the file
> …
> all these we can handler from filter driver
>
> We can’t use NSE becuase we won’t let the user do the file open in the
> common
> dialog go to the name space extension. we want it to like to open the
> normal
> folder.
>
> Do you have any idea?
>
> Thanks
>
> bin
>
>
> >From: amitr0
> >Reply-To: “Windows File Systems Devs Interest List”
> >To: “Windows File Systems Devs Interest List”
> >Subject: Re: [ntfsd] Problem with virtual folder
> >Date: Fri, 5 May 2006 20:55:22 +0530
> >
> >Bin,
> >
> >We had implemented the virtual folder concept with only Explorer NSE. I
> >never needed a filter driver to do part of the work for me. Can I ask
> you,
> >as to why you need a FS driver for this?
> >
> >I am asking this for knowledge sake, maybe your answer will give me some
> >insight on why the name space extension method alone will not help.
> >
> >Regards,
> >
> >amitr0
> >
> >—
> >Questions? First check the IFS FAQ at
> >https://www.osronline.com/article.cfm?id=17
> >
> >You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
> ‘’
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Bin,

Though I couldn’t understand your problem in it’s totality, still I try to
answer some of your questions here…

“We use the filter driver is because some application use the file API,
for example, check file size, exist,info, browse the folder, open the file”

NSE can handle all this, AFAIK. In our case it could. We didn’t distinguish
between any file extension types. It is *YOU* who writes the handlers for
the NSE, each of the COM extensions have to be writen by you, explorer
simply uses your functions.

“We can’t use NSE becuase we won’t let the user do the file open in the
common
dialog go to the name space extension. we want it to like to open the normal
folder.”

This I couldn’t undersand.

Amitr0

amitr0 wrote:

Bin,

Though I couldn’t understand your problem in it’s totality, still I try to answer some of your questions here…

“We use the filter driver is because some application use the file API, for example, check file size, exist,info, browse the folder, open the file”

NSE can handle all this, AFAIK. In our case it could. We didn’t distinguish between any file extension types. It is *YOU* who writes the handlers for the NSE, each of the COM extensions have to be writen by you, explorer simply uses your functions.

I think he’s talking about non-explorer use. Namespace extensions won’t work in that case…
eg. any application that opens a file using CreateFile needs a real file or something that
a filter driver can interpret. It’s below the level that namespace extensions exist.

Doing it in a filter driver (effectively writing a virtual filsystem) sounds complex though… not something I’d want to attempt.

Tony

Doesn’t common dialog ultimately call shell APIS?

To show the lists - yes. To open the file - no. More so, MS Office has its
own set of common dialogs :slight_smile:

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “amitr0”
To: “Windows File Systems Devs Interest List”
Sent: Monday, May 08, 2006 2:21 PM
Subject: Re: [ntfsd] Problem with virtual folder

Doesn’t common dialog ultimately call shell APIS?


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com