inetcomm: Add an implementation of IVirtualStream.

Huw Davies huw at
Fri Nov 7 07:49:36 CST 2008

On Fri, Nov 07, 2008 at 02:20:04PM +0100, Hans Leidekker wrote:
> On Friday 07 November 2008 13:48:29 Huw Davies wrote:
> > > This interface is undocumented but fortunately its name was enough
> > > of a hint to create a sensible implementation. Used by Outlook when
> > > retrieving or sending a mail.
> > 
> > We already have MimeOleCreateVirtualStream() which is implemented on top 
> > of CreateStreamOnHGlobal()...
> Hmm, that may work too. I wonder if they are fully compatible though,
> the Read method is called with cb set to -1, which appears to mean that
> the stream size should be taken. Do you know off hand if that's supported
> by IStream?

Well cb is ULONG, so it's not -1 but a big number.  This should work

Huw Davies
huw at

More information about the wine-devel mailing list