Windows IStream for one or multiple files

Hey,

I have a general question about the Windows IStream interface https://msdn.microsoft.com/en-us/library/windows/desktop/aa380034(v=vs.85).aspx

should there be one for each file or one for e.g a bunch of file.

The reason why I'm asking is the following:

I'm trying to work with the windows Clipboard which allows to have a bunch of files in it represented as IDataObject. This means I can have a folder with multiple files in it. This hierarchy somehow is stored as FILEGROUPDESCRIPTOR in the IDataObject which contains the number of files and a FILEDESCRIPTOR for each file.

the FILEDESCRIPTOR itself has a IStream pointer to the data of the file (in my case a virtual file), but I'm not sure if the whole hierarchy shares one IStream and uses the filesize or some offset to check for its data in the IStream, or if each FILEDESCRIPTOR should have its own IStream.

can anyone help?

thanks
I've decided to use one IStream per file. to be able to have multiple IStreams I had to implement my own custom IDataObject since the default one from windows via SHCreateDataObject only supports one IStream
Topic archived. No new replies allowed.