The Windows SDK sample (Namespace Extension) does not run correctly on Windows 11

128 Views Asked by At

I want to implement a Namespace Extension and custom column filtering.

WindowsExplorerColumnCategory

I tried to run this sample from Windows SDK 7.1, in Windows 11:

ExplorerDataProvider

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:

  1. CFolderViewImplCategoryProvider::GetCategoryForSCID
  2. CFolderViewImplCategoryProvider::CreateCategory
  3. CFolderViewImplCategorizer_Name::GetCategory
  4. 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?

0

There are 0 best solutions below