Whats the trick to stop explorer from traversing subdirectories?

We’ve developed a file system driver to access remote storage, but when user
opens explorer and clicks on root or our device, explorer insists on
“looking ahead” so it can place a plus sign next to the directories in root
which have other subdirs below it. I’d like to stop explorer from doing
this…and I’ve tried a few different combinations of the following flags.

Turn on FILE_SUPPORTS_REMOTE_STORAGE in the QUERY_VOLUME IRP, type
FILE_FS_ATTRIBUTE_INFORMATION

and when I IoCreateDevice the device object for the driver, I specified
FILE_DEVICE_VIRTUAL_DISK or’ed with FILE_DEVICE_NETWORK, as well as a few
other things.

Can someone tell me what bits to set to prevent this behavior?

Thanks and regards,

Greg Pearce

This is a ‘feature’ of Explorer.

Good luck,

Pete

Peter Scott
xxxxx@KernelDrivers.com
www.KernelDrivers.com

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-167524-
xxxxx@lists.osr.com] On Behalf Of Greg Pearce
Sent: Monday, February 16, 2004 7:52 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Whats the trick to stop explorer from traversing
subdirectories?

We’ve developed a file system driver to access remote storage, but when
user
opens explorer and clicks on root or our device, explorer insists on
“looking ahead” so it can place a plus sign next to the directories in
root
which have other subdirs below it. I’d like to stop explorer from doing
this…and I’ve tried a few different combinations of the following flags.

Turn on FILE_SUPPORTS_REMOTE_STORAGE in the QUERY_VOLUME IRP, type
FILE_FS_ATTRIBUTE_INFORMATION

and when I IoCreateDevice the device object for the driver, I specified
FILE_DEVICE_VIRTUAL_DISK or’ed with FILE_DEVICE_NETWORK, as well as a few
other things.

Can someone tell me what bits to set to prevent this behavior?

Thanks and regards,

Greg Pearce


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

You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Yes, but it doesn’t do it if the drive is a mapped drive over the network;
Explorer put a plus sign next to ALL dirs on a network drive, and if you
click on an empty dir (in the left pane of explorer), explorer just removes
the plus sign!

Regards,

Greg

“Peter Scott” wrote in message
news:xxxxx@ntfsd…
>
> This is a ‘feature’ of Explorer.
>
> Good luck,
>
> Pete
>
> Peter Scott
> xxxxx@KernelDrivers.com
> www.KernelDrivers.com
>
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com [mailto:bounce-167524-
> > xxxxx@lists.osr.com] On Behalf Of Greg Pearce
> > Sent: Monday, February 16, 2004 7:52 AM
> > To: Windows File Systems Devs Interest List
> > Subject: [ntfsd] Whats the trick to stop explorer from traversing
> > subdirectories?
> >
> > We’ve developed a file system driver to access remote storage, but when
> > user
> > opens explorer and clicks on root or our device, explorer insists on
> > “looking ahead” so it can place a plus sign next to the directories in
> > root
> > which have other subdirs below it. I’d like to stop explorer from doing
> > this…and I’ve tried a few different combinations of the following
flags.
> >
> > Turn on FILE_SUPPORTS_REMOTE_STORAGE in the QUERY_VOLUME IRP, type
> > FILE_FS_ATTRIBUTE_INFORMATION
> >
> > and when I IoCreateDevice the device object for the driver, I specified
> > FILE_DEVICE_VIRTUAL_DISK or’ed with FILE_DEVICE_NETWORK, as well as a
few
> > other things.
> >
> > Can someone tell me what bits to set to prevent this behavior?
> >
> > Thanks and regards,
> >
> > Greg Pearce
> >
> >
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>

There is a registry key to stop this. I do not remember what it is now, but
I will try to find the information.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Greg Pearce
Sent: Monday, February 16, 2004 7:52 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Whats the trick to stop explorer from traversing
subdirectories?

We’ve developed a file system driver to access remote storage, but when user
opens explorer and clicks on root or our device, explorer insists on
“looking ahead” so it can place a plus sign next to the directories in root
which have other subdirs below it. I’d like to stop explorer from doing
this…and I’ve tried a few different combinations of the following flags.

Turn on FILE_SUPPORTS_REMOTE_STORAGE in the QUERY_VOLUME IRP, type
FILE_FS_ATTRIBUTE_INFORMATION

and when I IoCreateDevice the device object for the driver, I specified
FILE_DEVICE_VIRTUAL_DISK or’ed with FILE_DEVICE_NETWORK, as well as a few
other things.

Can someone tell me what bits to set to prevent this behavior?

Thanks and regards,

Greg Pearce


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

You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Jamey

That would be great!

Thanks!

Greg

“Jamey Kirby” wrote in message news:xxxxx@ntfsd…
> There is a registry key to stop this. I do not remember what it is now,
but
> I will try to find the information.
>
> Jamey
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Greg Pearce
> Sent: Monday, February 16, 2004 7:52 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Whats the trick to stop explorer from traversing
> subdirectories?
>
> We’ve developed a file system driver to access remote storage, but when
user
> opens explorer and clicks on root or our device, explorer insists on
> “looking ahead” so it can place a plus sign next to the directories in
root
> which have other subdirs below it. I’d like to stop explorer from doing
> this…and I’ve tried a few different combinations of the following flags.
>
> Turn on FILE_SUPPORTS_REMOTE_STORAGE in the QUERY_VOLUME IRP, type
> FILE_FS_ATTRIBUTE_INFORMATION
>
> and when I IoCreateDevice the device object for the driver, I specified
> FILE_DEVICE_VIRTUAL_DISK or’ed with FILE_DEVICE_NETWORK, as well as a few
> other things.
>
> Can someone tell me what bits to set to prevent this behavior?
>
> Thanks and regards,
>
> Greg Pearce
>
>
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

I’ve searched everywhere I can think of for a description of a key / value
in the registry and cannot find anything on it in any doc I have (ifs kit,
ddk, nagar, sdk, registry, google, ntfsd archives)… does anyone have any
other suggestions? Maybe I’m using wrong keywords…

Thanks

Greg

“Jamey Kirby” wrote in message news:xxxxx@ntfsd…
> There is a registry key to stop this. I do not remember what it is now,
but
> I will try to find the information.
>
> Jamey
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Greg Pearce
> Sent: Monday, February 16, 2004 7:52 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Whats the trick to stop explorer from traversing
> subdirectories?
>
> We’ve developed a file system driver to access remote storage, but when
user
> opens explorer and clicks on root or our device, explorer insists on
> “looking ahead” so it can place a plus sign next to the directories in
root
> which have other subdirs below it. I’d like to stop explorer from doing
> this…and I’ve tried a few different combinations of the following flags.
>
> Turn on FILE_SUPPORTS_REMOTE_STORAGE in the QUERY_VOLUME IRP, type
> FILE_FS_ATTRIBUTE_INFORMATION
>
> and when I IoCreateDevice the device object for the driver, I specified
> FILE_DEVICE_VIRTUAL_DISK or’ed with FILE_DEVICE_NETWORK, as well as a few
> other things.
>
> Can someone tell me what bits to set to prevent this behavior?
>
> Thanks and regards,
>
> Greg Pearce
>
>
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

Download regmon and watch what explorer tries to
access when you open a drive (assuming there is a
registry key/value that controls this).

— Greg Pearce wrote:
> does anyone have any
> other suggestions?

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

Thanks Randy - I tried this, but I didn’t “see” anything that remotely
corresponds to this (that I could figure out - there was a whole lot of
output…)

“Randy Cook” wrote in message news:xxxxx@ntfsd…
> Download regmon and watch what explorer tries to
> access when you open a drive (assuming there is a
> registry key/value that controls this).
>
> — Greg Pearce wrote:
> > does anyone have any
> > other suggestions?
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
>

Windows Explorer does not enumerate subfolders on mapped network drives
because network drives are handled by another shell extension. Shell folder
component for usual directories always tries to enumerate its subfolders to
see whether it needs to show the plus icon.

–htfv

“Greg Pearce” wrote in message news:xxxxx@ntfsd…
> Thanks Randy - I tried this, but I didn’t “see” anything that remotely
> corresponds to this (that I could figure out - there was a whole lot of
> output…)
>
>
> “Randy Cook” wrote in message news:xxxxx@ntfsd…
> > Download regmon and watch what explorer tries to
> > access when you open a drive (assuming there is a
> > registry key/value that controls this).
> >
> > — Greg Pearce wrote:
> > > does anyone have any
> > > other suggestions?
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Finance: Get your refund fast by filing online.
> > http://taxes.yahoo.com/filing.html
> >
>
>
>

Do you know a way around it? We have nearline or offline storage that can
take a while to fetch…when it runs the directory chain, some of that
information has to come from a network device, via a database lookup. Then
it might have to find the media and load it. That could take a month!
(actually a few seconds, but still…)

There must be a way if the shell extension can do it…

Cheers,

Greg

“Alexey Logachyov” wrote in message news:xxxxx@ntfsd…
> Windows Explorer does not enumerate subfolders on mapped network drives
> because network drives are handled by another shell extension. Shell
folder
> component for usual directories always tries to enumerate its subfolders
to
> see whether it needs to show the plus icon.
>
> --htfv
>
>
> “Greg Pearce” wrote in message news:xxxxx@ntfsd…
> > Thanks Randy - I tried this, but I didn’t “see” anything that remotely
> > corresponds to this (that I could figure out - there was a whole lot of
> > output…)
> >
> >
> > “Randy Cook” wrote in message news:xxxxx@ntfsd…
> > > Download regmon and watch what explorer tries to
> > > access when you open a drive (assuming there is a
> > > registry key/value that controls this).
> > >
> > > — Greg Pearce wrote:
> > > > does anyone have any
> > > > other suggestions?
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Finance: Get your refund fast by filing online.
> > > http://taxes.yahoo.com/filing.html
> > >
> >
> >
> >
>
>
>