ITextStoreAnchor::GetEmbedded method
The ITextStoreAnchor::GetEmbedded method obtains an embedded object from a text stream.
Syntax
HRESULT GetEmbedded( [in] DWORD dwFlags, [in] IAnchor *paPos, [in] REFGUID rguidService, [in] REFIID riid, [out] IUnknown **ppunk );
Parameters
- dwFlags [in]
-
Bit fields that specify how the method deals with hidden text. If set to TS_GEA_HIDDEN, an embedded object can be located within hidden text. Otherwise hidden text is skipped over.
- paPos [in]
-
Pointer to an anchor positioned immediately in front of the embedded object, as denoted by a TS_CHAR_EMBEDDED character.
- rguidService [in]
-
Contains a GUID value that defines the requested format of the obtained object. This can be one of the following values.
Value Meaning - GUID_TS_SERVICE_DATAOBJECT
The object should be obtained as an IDataObject data object.
- GUID_TS_SERVICE_ACCESSIBLE
The object should be obtained as an Accessible object.
- GUID_TS_SERVICE_ACTIVEX
The object should be obtained as an ActiveX object.
- riid [in]
-
Specifies the interface type requested.
- ppunk [out]
-
Pointer to an IUnknown pointer that receives the requested interface.
Return value
This method can return one of these values.
| Value | Description |
|---|---|
|
The method was successful. |
|
The method failed to obtain the requested object. |
|
One or more parameters are invalid. |
|
The implementing application does not expose embedded objects in its text stream. |
|
The requested paPos anchor is not within the document. |
|
The requested interface type is unsupported. |
|
The caller does not have a read-only lock. |
|
There is no paPos anchor immediately in front of a TS_CHAR_EMBEDDED character. |
|
The service type specified in rguidService is unsupported. |
Remarks
The caller must use QueryInterface to probe for appropriate interfaces. Prospective interfaces include those associated with embedded documents or controls such as IOleObject, IDataObject, IViewObject, IPersistStorage, IOleCache, or IDispatch.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Redistributable |
TSF 1.0 on Windows 2000 Professional |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also