TYMED 枚举

定义

提供 TYMED 结构的托管定义。Provides the managed definition of the TYMED structure.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class TYMED
[System.Flags]
public enum TYMED
type TYMED = 
Public Enum TYMED
继承
属性

字段

TYMED_ENHMF 64

该存储介质是增强型图元文件。The storage medium is an enhanced metafile. 如果 STGMEDIUMpUnkForRelease 成员为 null,目标进程应使用 DeleteEnhMetaFile 删除位图。If the STGMEDIUMpUnkForRelease member is null, the destination process should use DeleteEnhMetaFile to delete the bitmap.

TYMED_FILE 2

该存储介质是由路径标识的磁盘文件。The storage medium is a disk file identified by a path. 如果 STGMEDIUMpUnkForRelease 成员为 null,目标进程应使用 OpenFile 删除文件。If the STGMEDIUMpUnkForRelease member is null, the destination process should use OpenFile to delete the file.

TYMED_GDI 16

该存储介质是图形设备接口 (GDI) 组件 (HBITMAP)。The storage medium is a Graphics Device Interface (GDI) component (HBITMAP). 如果 STGMEDIUMpUnkForRelease 成员为 null,目标进程应使用 DeleteObject 删除位图。If the STGMEDIUMpUnkForRelease member is null, the destination process should use DeleteObject to delete the bitmap.

TYMED_HGLOBAL 1

该存储介质是全局内存句柄 (HGLOBAL)。The storage medium is a global memory handle (HGLOBAL). 使用 GMEM_SHARE 标志分配全局句柄。Allocate the global handle with the GMEM_SHARE flag. 如果 STGMEDIUMpUnkForRelease 成员为 null,目标进程应使用 GlobalFree 释放内存。If the STGMEDIUMpUnkForRelease member is null, the destination process should use GlobalFree to release the memory.

TYMED_ISTORAGE 8

该存储介质是由 IStorage 指针标识的存储组件。The storage medium is a storage component identified by an IStorage pointer. 数据位于此 IStorage 实例所包含的流和存储中。The data is in the streams and storages contained by this IStorage instance. 如果 STGMEDIUMpUnkForRelease 成员不为 null,则目标进程应使用 IStorage::Release 释放存储组件。If the STGMEDIUMpUnkForRelease member is not null, the destination process should use IStorage::Release to release the storage component.

TYMED_ISTREAM 4

该存储介质是由 IStream 指针标识的流对象。The storage medium is a stream object identified by an IStream pointer. 使用 ISequentialStream::Read 读取数据。Use ISequentialStream::Read to read the data. 如果 STGMEDIUMpUnkForRelease 成员不为 null,则目标进程应使用 IStream::Release 释放流组件。If the STGMEDIUMpUnkForRelease member is not null, the destination process should use IStream::Release to release the stream component.

TYMED_MFPICT 32

该存储介质是图元文件 (HMETAFILE)。The storage medium is a metafile (HMETAFILE). 使用 Windows 或 WIN32 函数来访问该图元文件的数据。Use the Windows or WIN32 functions to access the metafile's data. 如果 STGMEDIUMpUnkForRelease 成员为 null,目标进程应使用 DeleteMetaFile 删除位图。If the STGMEDIUMpUnkForRelease member is null, the destination process should use DeleteMetaFile to delete the bitmap.

TYMED_NULL 0

当前没有传递任何数据。No data is being passed.

注解

有关TYMED结构的详细信息, 请参阅 MSDN library。For more information about the TYMED structure, see the MSDN Library.

当本机代码中的 COM 方法返回 HRESULT 时, 公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

适用于