IRichEditOle::SetHostNames method

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.

Syntax


HRESULT SetHostNames(
  LPCSTR lpstrContainerApp,
  LPCSTR lpstrContainerObj
);

Parameters

lpstrContainerApp

Type: LPCSTR

Null-terminated name of the container application.

lpstrContainerObj

Type: LPCSTR

Null-terminated name of the container document or object.

Return value

Type: HRESULT

Returns S_OK on success, or a failure code otherwise. E_OUTOFMEMORY is returned if memory could not be allocated to remember the strings.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

IRichEditOle

 

 

Community Additions

ADD
Show:
© 2014 Microsoft