[in] Memory handle allocated by the GlobalAlloc function. The handle must be allocated as movable and nondiscardable.
[in] Whether the underlying handle for this stream object should be automatically freed when the stream object is released. If set to FALSE, the caller must free the hGlobal after the final release.
[out] Address of IStream* pointer variable that receives the interface pointer to the new stream object. Its value cannot be NULL.
Returns S_OK (0) if the stream object was created successfully.