The subtleties of Create­Stream­On­HGlobal, part 1: Introduction and basic usage

1 · Raymond Chen · Sept. 28, 2021, 2:21 p.m.
The Create­Stream­On­HGlobal function lets you create a COM IStream that uses an HGLOBAL memory block as its backing store. It takes two input parameters: an optional HGLOBAL that represents the memory block to use, and a flag called fDelete­On­Release = FALSE that controls whether the stream object frees the HGLOBAL when it is destroyed. The post The subtleties of <CODE>Create­Stream­On­HGlobal</CODE>, part 1: Introduction and basic usage appeared first on The Old New Thing....