Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum System.Runtime.InteropServices.ComTypes.TYMED
Assembly: System.Runtime.InteropServices
Provides the managed definition of the <see langword="TYMED" /> structure.
Values
TYMED_NULL
No data is being passed.
TYMED_HGLOBAL
The storage medium is a global memory handle (HGLOBAL). Allocate the global handle with the GMEM_SHARE flag. If the <see cref="T:System.Runtime.InteropServices.ComTypes.STGMEDIUM" /> <see cref="F:System.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease" /> member is <see langword="null" /> , the destination process should use <see langword="GlobalFree" /> to release the memory.
TYMED_FILE
The storage medium is a disk file identified by a path. If the <see langword="STGMEDIUM" /> <see cref="F:System.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease" /> member is <see langword="null" /> , the destination process should use <see langword="OpenFile" /> to delete the file.
TYMED_ISTREAM
The storage medium is a stream object identified by an <see langword="IStream" /> pointer. Use <see langword="ISequentialStream::Read" /> to read the data. If the <see cref="T:System.Runtime.InteropServices.ComTypes.STGMEDIUM" /> <see cref="F:System.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease" /> member is not <see langword="null" /> , the destination process should use <see langword="IStream::Release" /> to release the stream component.
TYMED_ISTORAGE
The storage medium is a storage component identified by an <see langword="IStorage" /> pointer. The data is in the streams and storages contained by this <see langword="IStorage" /> instance. If the <see cref="T:System.Runtime.InteropServices.ComTypes.STGMEDIUM" /> <see cref="F:System.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease" /> member is not <see langword="null" /> , the destination process should use <see langword="IStorage::Release" /> to release the storage component.
TYMED_GDI
The storage medium is a Graphics Device Interface (GDI) component (HBITMAP). If the <see cref="T:System.Runtime.InteropServices.ComTypes.STGMEDIUM" /> <see cref="F:System.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease" /> member is <see langword="null" /> , the destination process should use <see langword="DeleteObject" /> to delete the bitmap.
TYMED_MFPICT
The storage medium is a metafile (HMETAFILE). Use the Windows or WIN32 functions to access the metafile's data. If the <see cref="T:System.Runtime.InteropServices.ComTypes.STGMEDIUM" /> <see cref="F:System.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease" /> member is <see langword="null" /> , the destination process should use <see langword="DeleteMetaFile" /> to delete the bitmap.
TYMED_ENHMF
The storage medium is an enhanced metafile. If the <see cref="T:System.Runtime.InteropServices.ComTypes.STGMEDIUM" /> <see cref="F:System.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease" /> member is <see langword="null" /> , the destination process should use <see langword="DeleteEnhMetaFile" /> to delete the bitmap.