Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding properties to virtual files

I'm developing a explorer data provider based on this sample. I already added drag & drop support. Now I want that the files and folders can be ordered by filetyp, size or whatever. The problem seems that the virtual files have only the name property like you can see on the screenshot.

Screenshot of shell extension

How can I add more properties or columns to order the content?

like image 403
rekire Avatar asked Apr 10 '26 19:04

rekire


1 Answers

The solution is to write a class which implement ICategorizer and to add a mapping into IShellFolder2::MapColumnToSCID between the index and the PROPERTYKEY and also to add a mapping info IShellFolder2 ::GetDetailsOf for index and the column name.

That is all :-)

like image 154
rekire Avatar answered Apr 12 '26 08:04

rekire



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!