Share via


ITextStoreAnchor::QueryInsertEmbedded 方法 (textstor.h)

判斷檔是否可以透過 InsertEmbedded 或 InsertEmbeddedAtSelection 方法來接受內嵌物件。

語法

HRESULT QueryInsertEmbedded(
  [in]  const GUID      *pguidService,
  [in]  const FORMATETC *pFormatEtc,
  [out] BOOL            *pfInsertable
);

參數

[in] pguidService

物件類型的指標。 如果 為 NULL,則應使用 pFormatEtc

[in] pFormatEtc

FORMATETC 結構的指標,其中包含 物件的格式數據。 如果 pguidService 參數為 NULL,則這個參數不能是 NULL

[out] pfInsertable

如果物件類型可以插入檔中,則會收到 TRUE ;如果無法將物件類型插入檔中,則為 FALSE

傳回值

這個方法可以傳回下列其中一個值。

描述
S_OK
此方法成功。
E_INVALIDARG
pFormatEtc 參數為 NULL

備註

檔支援的剪貼簿格式取決於應用程式。

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows 2000 Server [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 textstor.h
Dll Msctf.dll
可轉散發套件 Windows 2000 專業版上的 TSF 1.0

另請參閱

FORMATETC

ITextStoreAnchor

ITextStoreAnchor::InsertEmbedded

ITextStoreAnchor::InsertEmbeddedAtSelection