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_GDI An integer GDI handle TYMED_MFPICT An integer METAFILE handle TYMED_ENHMF An integer ENHMETAFILE handle TYMED_HGLOBAL A string with the bytes of the global memory object. TYMED_FILE A string/unicode filename TYMED_ISTREAM A PyIStream object TYMED_ISTORAGE A 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.