OLE_RELEASE_METHOD OleQueryReleaseMethod(lpobj)
LPOLEOBJECT lpobj;
The OleQueryReleaseMethod function finds out the operation that finished for the specified object.
| Parameter | Description |
| lpobj | Points to an object for which the operation is queried. |
The following return values indicate the server callback that finished.
| Return 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.
A client application receives the OLE_RELEASE notification when an asynchronous operation has ended. The client can then call the OleQueryReleaseMethod function to check which operation caused the DLL to send the OLE_RELEASE notification. The client calls OleQueryReleaseError to determine whether the operation terminated successfully.
See AlsoOleQueryReleaseError, OleQueryReleaseStatus