I want to implement a Namespace Extension and custom column filtering.
I tried to run this sample from Windows SDK 7.1, in Windows 11:
This sample implements a Shell Namespace Extension including custom categorizers.
I made some changes to fix the missing IID_IItemCategorizer
and an Access Violation when LoadString()
is called.
I debugged the code of Category.cpp
and I realized that all expected functions are not being called.
The functions should be run in below sequence:
CFolderViewImplCategoryProvider::GetCategoryForSCID
CFolderViewImplCategoryProvider::CreateCategory
CFolderViewImplCategorizer_Name::GetCategory
CFolderViewImplCategorizer_Name::GetCategoryInfo
But, after successfully running the first 3 functions, GetCategoryInfo()
is not being called.
Is it because of Windows 11? Is the SDK not updated? Or did I make a mistake? How can I fix this?