PySTGMEDIUM Object

A STGMEDIUM object represents a COM STGMEDIUM structure.

Methods

set
Sets the type and data of the object 

Properties

int tymed
An integer indicating the type of data in the stgmedium

object data
The data in the stgmedium. The result depends on the value of the 'tymed' property of the PySTGMEDIUM object.

tymed Result Type
TYMED_GDIAn integer GDI handle
TYMED_MFPICTAn integer METAFILE handle
TYMED_ENHMFAn integer ENHMETAFILE handle
TYMED_HGLOBALA string with the bytes of the global memory object.
TYMED_FILEA string/unicode filename
TYMED_ISTREAMA PyIStream object
TYMED_ISTORAGEA PyIStorage object

int data_handle
The raw 'integer' representation of the data. For TYMED_HGLOBAL, this is the handle rather than the string data. For the string and interface types, this is an integer holding the pointer.