Discussion:
Bug in Windows 7 (Home Premium) IShellFolder2.GetDetailsOf
(too old to reply)
Jim Kueneman
2010-04-24 00:57:02 UTC
Permalink
Raw Message
I any one else notice this with Win7 and Libraries:

www.mustangpeak.net/Windows_7_Library_IShellFolder2_Bug.pdf


The only difference here is I am using IShellFolder2.GetDetailsOf for
one and IShellFolder2.GetDetailsEx for the other.

The issue is only within the Library Structure.


Jim
--
www.mustangpeak.net
Jim Kueneman
2010-04-25 05:47:12 UTC
Permalink
Raw Message
Hi,
Post by Jim Kueneman
The only difference here is I am using IShellFolder2.GetDetailsOf for
one and IShellFolder2.GetDetailsEx for the other.
The issue is only within the Library Structure.
I am sure this is a issue with Win7. The work around will be to detect
if I am looking at a folder in the Library structure and pull the
details from IShellFolder2 of the real file folder and not the one with
the Libraries as the parent. Next question is there an easy way to
tell if a folder in within the Library structure? I don't see any
Attribute flags that identify anything lower than the first level under
a Library branch. What is different is the interfaces exposed by the
IShellFolder between the real and Library child are very different but
I don't want to depend on that (the Library child has fewer exposed
interfaces of varying types).

Thank,
Jim
--
www.mustangpeak.net
Jim Kueneman
2010-04-26 04:35:33 UTC
Permalink
Raw Message
Post by Jim Kueneman
I am sure this is a issue with Win7. The work around will be to
detect if I am looking at a folder in the Library structure and pull
the details from IShellFolder2 of the real file folder and not the
Sorry my bad. I don't remember how my own code works. The call the
GetDetailOf fails for most columns on Folder in the Library on Win7
(64). I had a fall back using file API to fill in the columns if it
failed that I forgot about.

Now that mystery is solved why is GetDetailsEx on the folders in the
Library so slow?

Jim
--
www.mustangpeak.net
nikos
2010-06-24 09:41:26 UTC
Permalink
Raw Message
what I've noticed with win7 library columns is that the ORDER of them
is mixed up. So for a normal folder you get columns Name, size,
attributes etc, for library folders some columns are reordered. It
runs havoc with programs that store columns just as an offset (ahem :)
Jim Kueneman
2010-06-25 18:02:43 UTC
Permalink
Raw Message
Post by nikos
what I've noticed with win7 library columns is that the ORDER of them
is mixed up. So for a normal folder you get columns Name, size,
attributes etc, for library folders some columns are reordered. It
runs havoc with programs that store columns just as an offset (ahem :)
Good I am not crazy, it is broken. What I ened up doing was resolving
the object in the library to the actual object and that for the
columns/detials/etc. It is 10x faster and the colums are correct.
Where it still fails is on the first level of Libraries.

Jim
--
www.mustangpeak.net
Loading...