IRichEditOle::SetHostNames

Sets the "host names" to be given to objects as they are inserted to a rich edit control. The host names are used in the user interface of servers to describe the container context of opened objects.

HRESULT SetHostNames(
  LPCSTR lpstrContainerApp,  
  LPCSTR lpstrContainerObj  
);
 

Parameters

szContainerApp
Null-terminated name of the container application.
szContainerObj
Null-terminated name of the container document or object.

Return Values

Returns success status. Use GetScode to retrieve an scode. Can be S_OK on success or E_OUTOFMEMORY if memory could not be allocated to remember the strings.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richole.h.

See Also

Rich Edit Controls Overview, Rich Edit OLE Interfaces, IRichEditOle