Hello everybody
I have a technical question and I cant find the answer for it anywhere. Therefore I try to ask you here, because the TC has this functionality build in: When you select two or more drives and want to see the properties of it, then a dialog appears with a sheet for every drive.
The Windows Explorer has the same functionality.
But which API function I must use to get this dialog?
With SHObjectProperties(0, SHOP_VOLUMEGUID, 'C:\', nil) I only get the properties of one, the specified drive.
With SHMultiFileProperties(MyDataObject, 0) I only get properties of multiple selected files, not drives.
So, I please you to give me a code snippet or an example how to display my wanted dialog Maybe Ch. Ghisler himself can help me?
Thank you very much in advantage!
Property dialog for multiple selected drives
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I don't think that there is an easy way to do it. Here is how I'm doing it in Total Commander:
1. Get the IShellFolder object of the "My Computer" folder, e.g. via GetSpecialFolderLocation and DesktopFolder.BindToObject(..,IID_IShellFolder
2. Build an array of ItemIDList elements, one for each drive. You can get them via ParseDisplayName
3. Call CurrentDir.GetUIObjectOf(...,IID_IContextMenu
4. Call ContextMenu->InvokeCommand() with the verb "properties"
1. Get the IShellFolder object of the "My Computer" folder, e.g. via GetSpecialFolderLocation and DesktopFolder.BindToObject(..,IID_IShellFolder
2. Build an array of ItemIDList elements, one for each drive. You can get them via ParseDisplayName
3. Call CurrentDir.GetUIObjectOf(...,IID_IContextMenu
4. Call ContextMenu->InvokeCommand() with the verb "properties"
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com