Get the field on which the explorer window is sorted

I would like to know if there is a way to find out how files are sorted in the windows explorer window. Type of availability of the "ORDER BY" window offer. Example: "Name Ascending" or "Date Modified Descending".

This question does NOT apply to the Windows name sorting algorithm, but about custom sorting criteria for a particular open Windows Explorer window.

The goal is to double-click the image in Windows Explorer to run my program (there are no problems) and find what the previous and next images were (for my previous and next buttons), since it was in the explorer window.

Do you know whether it is possible, and if so, how?

That would be great if it were in C #, but even C ++ would be great.

0
source share
1 answer

I think you could use a shell extension to keep the current sort order of all Windows Explorer sessions to disk when changing them with timestamps. You then read this data in your application, when necessary, to determine how the user interface is displayed.

0
source

All Articles