OleSetHostNames

  OLESTATUS OleSetHostNames(lpObject, lpszHost, lpszHostObj)    
  LPOLEOBJECT lpObject; /* pointer to object */
  LPCSTR lpszHost; /* pointer to string with host name */
  LPCSTR lpszHostObj; /* pointer to string with host's name for object */

The OleSetHostNames function specifies the name of the container application and the container's name for the specified object. This information is used in window titles when the object is being edited in the server application.

Parameters

lpObject

Points to the object for which a name is set.

lpszHost

Points to a null-terminated string specifying the name of the container application.

lpszHostObj

Points to a null-terminated string specifying the container's name for the object.

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can be one of the following:

OLE_BUSY
OLE_ERROR_MEMORY
OLE_ERROR_OBJECT
OLE_WAIT_FOR_RELEASE