Setup:
Create an IExploreCommand context menu, with one or more submenus, using the provided sample code, that supports right-click on files (*), folder (Directory), and folder background (Directory/Background).
Problem:
Right-click on directory background returns nothing in IShellItemArray.
Conditions:
Occurs when IExploreCommand context menu has one or more submenus and user is accessing the classic context menu on Windows 10 or Windows 11 (i.e. Shift-Right-Click).
Please note that IShellItemArray is correctly populated with the path of the folder background that was clicked when there are no submenus or when using the modern context menu on Windows 11.