IRichEditOle::GetObject

Returns information from a REOBJECT structure about an object in a rich edit control.

HRESULT GetObject(

LONG iob,  
REOBJECT FAR * lpreobject,  
DWORD dwFlags  
);  

Parameters

iob

Zero-based index specifying which object to return information about. If this parameter is REO_IOB_USE_CP, information about the object at the character position specified by the REOBJECT structure is returned.

lpreobject

Pointer to a REOBJECT structure that receives information about the object. The reference count of the interfaces returned in this structure has been incremented; it is the responsibility of the caller to use the Release function to decrement the count.

dwFlags

Operation flags specifying which interfaces to return in the structure. Can be a combination of these values:

REO_GETOBJ_POLEOBJ Get OLE object interface.
REO_GETOBJ_PSTG Get Storage interface.
REO_GETOBJ_POLESITE Get OLE site interface.
REO_GETOBJ_NO_INTERFACES Get no interfaces.
REO_GETOBJ_ALL_INTERFACES Get all interfaces.

Return Values

Returns success status. Use GetScode to retrieve an SCODE. Can be S_OK on success or E_INVALIDARG if no buffer for the REOBJECT structure was given, or the iob or character position is invalid.

See Also

IRichEditOle, REOBJECT