OleQueryReleaseMethod

  OLE_RELEASE_METHOD OleQueryReleaseMethod(lpobj)    
  LPOLEOBJECT lpobj; /* pointer to object to query */

The OleQueryReleaseMethod function determines the operation that finished for the specified object.

Parameters

lpobj

Points to an object for which the operation is queried.

Return Value

The return value indicates the server operation (“method”) that finished. It can be one of the following values:

Value Server operation

OLE_NONE No operation active
OLE_DELETE Object delete
OLE_LNKPASTE PasteLink (auto reconnect)
OLE_EMBPASTE Paste and Update
OLE_SHOW Show
OLE_RUN Run
OLE_ACTIVATE Activate
OLE_UPDATE Update
OLE_CLOSE Close
OLE_RECONNECT Reconnect
OLE_SETUPDATEOPTIONS Setting update options
OLE_SERVERUNLAUNCH Server is stopping
OLE_LOADFROMSTREAM LoadFromStream (auto reconnect)
OLE_SETDATA OleSetData
OLE_REQUESTDATA OleRequestData
OLE_OTHER Other miscellaneous asynchronous operations
OLE_CREATE Create
OLE_CREATEFROMTEMPLATE CreatefromTemplate
OLE_CREATELINKFROMFILE CreateLinkFromFile
OLE_COPYFROMLNK CopyFromLink (auto reconnect)
OLE_CREATEFROMFILE CreateFromFile

If the pointer passed in the lpobj parameter is invalid, the function returns OLE_ERROR_OBJECT.

Comments

A client application receives the OLE_RELEASE notification when an asynchronous operation has terminated. The client can then call the OleQueryReleaseMethod function to determine what operation has released. The client calls the OleQueryReleaseError function to determine whether the operation terminated successfully or with an error value.

See Also

OleQueryReleaseError, OleQueryReleaseStatus