pythoncom.CreateStreamOnHGlobal

PyIStream = CreateStreamOnHGlobal(hGlobal, DeleteOnRelease )

Creates an in-memory stream storage object

Parameters

hGlobal=None : PyHANDLE

Global memory handle. If None, a new global memory object is allocated.

DeleteOnRelease=True : bool

Indicates if global memory should be freed when IStream object is destroyed.