The server application can do the following actions, resulting in the sequence of callbacks to the server application. Although the callback sequences can vary, those listed are generally valid.
Action:OLE_CHANGED notification is sent for a linked object (client application is in automatic update mode)
OLESVR.DLL makes the following callback:
Object Callback
GetData
Action:OLE_CLOSED notification is sent for an embedded object
OLESVR.DLL makes the following callbacks:
Object Callbacks
GetData
Document Callbacks
Close (unless the server application or document is revoked after sending OLE_CLOSED)
Action:OleSavedServerDoc is called for an embedded document (or for a link that is set to the update-on-save mode).
OLESVR.DLL makes the following callback:
Object Callback
GetData
Note When GetData is called for embedded objects, it will usually be called twice, once for native data and once for presentation data. Also, It is possible for a call to GetData to be preceded by a call to SetTargetDevice. This can occur if a client application has requested that the object be rendered for a new target device since the most recent GetData call. This can happen for linked as well as embedded objects.