Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | richole.h |
DLL | Msftedit.dll |