| #include <ole.h> |
| OLESTATUS OleQueryType(lpObject, lpType) | |||||
| LPOLEOBJECT lpObject; | /* address of object to query | */ | |||
| LONG FAR* lpType; | /* address of type of object | */ | |||
The OleQueryType function checks whether a specified object is embedded, linked, or static.
lpObject
Points to the object for which the type is to be queried.
lpType
Points to a long variable that contains the type of the object when the function returns. This parameter can be one of the following values:
| Value | Meaning |
| OT_EMBEDDED | Object is embedded. |
| OT_LINK | Object is a link. |
| OT_STATIC | Object is a static picture. |
The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be one of the following:
OLE_ERROR_GENERIC OLE_ERROR_OBJECT