TYMED TYMED TYMED TYMED Enum

定義

提供 TYMED 結構的 Managed 定義。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 TYMED_ENHMF TYMED_ENHMF TYMED_ENHMF 64

存放媒體是加強型中繼檔 (Metafile)。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 TYMED_FILE TYMED_FILE 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 TYMED_GDI TYMED_GDI TYMED_GDI 16

存放媒體是繪圖裝置介面 (Graphics Device Interface,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 TYMED_HGLOBAL TYMED_HGLOBAL 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 TYMED_ISTORAGE TYMED_ISTORAGE TYMED_ISTORAGE 8

存放媒體是由 IStorage 指標所識別的儲存區元件。The storage medium is a storage component identified by an IStorage pointer. 資料位於這個 IStorage 執行個體 (Instance) 所包含的資料流和儲存區中。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 TYMED_ISTREAM TYMED_ISTREAM 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 TYMED_MFPICT TYMED_MFPICT 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 TYMED_NULL TYMED_NULL TYMED_NULL 0

未傳遞任何資料。No data is being passed.

備註

如需TYMED結構的詳細資訊, 請參閱 MSDN Library。For more information about the TYMED structure, see the MSDN Library.

當原生程式碼中的 COM 方法傳回 HRESULT 時, common language runtime 會擲回例外狀況。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.

適用於