GetUIObjectOf for objects on different drives
-
One convenient way to copy a collection of files to the clipboard is the implement the IContextMenu interface (then ivoking commands like "copy", "delete",...). For this you need to call GetUIObjectOf on the files parent folder (IShellFolder interface). This even works when the files belongs to different folders (subfolders) since you provide files PIDLs that are relative to the parent folder one. But I've got a situation where the files belong to different drives. And I can't build PIDLs relative to C:\something\ for files belonging to D:\someother\. It would also be the same with network folders. 1/ Can I build PIDLs relative to another drive ? or 2/ Can I have an IShellFolder interface common to severall drives so that I can call a successfull GetUIObjectOf for the IContextMenu interface or 3/ Another solution ? Thanks Yarp http://www.senosoft.com/