OleReconnect

  OLESTATUS OleReconnect(lpObject)    
  LPOLEOBJECT lpObject; /* pointer to object to reconnect to */

The OleReconnect function reestablishes a link to an open linked object. If the specified object is not open, this function does not open it.

Parameters

lpObject

Points to the object to reconnect to.

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_NOT_LINK
OLE_ERROR_OBJECT
OLE_ERROR_STATIC
OLE_WAIT_FOR_RELEASE

Comments

A client application can use the OleReconnect function to keep the presentation for a linked object up-to-date.

See Also

OleActivate, OleClose, OleUpdate