ICategoryProvider::GetDefaultCategory()

ICategoryProvider::GetDefaultCategory()

Post by Timo Kun » Tue, 27 Aug 2002 23:43:19



Hi!

As far as I've understood the (very poor) documentation,
ICategoryProvider::GetDefaultCategory() returns the GUID of the
default categorizer of an IShellFolder. Well, for "My Computer" I get
{3E373E22-DA99-4CB7-A886-754EAE984CB4}. But when I call
ICatProvider::CreateCategory with this GUID, it will fail. With other
GUIDs like {55d7b852-f6d1-42f2-aa75-8728a1b2d264} it works. What am I
doing wrong? Also I don't understand the sentence in Platform SDK: "If
GUID_NULL is returned in pguid, it indicates that the client should
use pscid as the default category." How can a SHCOLUMNID-structure be
used for grouping???

Thanks in advance!

---
www.TimoSoft-Software.de

 
 
 

ICategoryProvider::GetDefaultCategory()

Post by Jim Barr » Wed, 28 Aug 2002 07:25:55



> As far as I've understood the (very poor) documentation,
> ICategoryProvider::GetDefaultCategory() returns the GUID of the
> default categorizer of an IShellFolder. Well, for "My Computer" I get
> {3E373E22-DA99-4CB7-A886-754EAE984CB4}. But when I call
> ICatProvider::CreateCategory with this GUID, it will fail.

I get the same thing. And yes, the documentation is abysmal.

- Jim

 
 
 

1. ICategoryProvider::EnumCategories()

Hi!

I'm trying to get all categories Windows-Explorer (of Windows XP)
displays for "My Computer" in report-view. These should be
"Harddisks", "Others" and so on. I use
IShellFolder::CreateViewObject() to get a ICategoryProvider and then
call ICategoryProvider::EnumCategories(), which gives me a valid
IEnumGUID. So far so good. Now, when I call IEnumGUID::Next(), I
should get at least 1 Categorizer-GUID, but I don't. The return-value
is 1 and nothing happens. Why? Is this interface buggy or am I too
stupid to use it? Has anyone any idea?

Thanks in advance!

---
www.TimoSoft-Software.de

2. FAQ for this group?

3. Need help on ICategoryProvider/ICategorizer!

4. FA: 9 vintage Apple II and Mac lots

5. JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

6. Empty Toner Cartriges For STAR LS-5EX

7. ANDATE TUTTI A FARE IN CULO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

8. speed loss

9. D85A51FDB61B09B8 8697DD3B98E669B20D358F5AA1B5AE2F 3F86501F9CAB6034F1D4C83D10BE2FF110A1CDF4D3A1C7EB 005453BC6B7593E0 A6B3B04A9E1FE3A6 8534EFA5146054A726E2609F323589D1 76AFFA7E5918EB5A0F191C181886E60B

10. 6FA70DCDEF1902FA 000402A47153A895E3BEE6EF2968B994 3F86501F9CAB6034F1D4C83D10BE2FF110A1CDF4D3A1C7EB 3028C7E32FBDA980 A6B3B04A9E1FE3A6 8534EFA5146054A726E2609F323589D1 5448484F55576DBF83EE0D9A6E8C268B