OLESTATUS OleQueryType(lpObject, lpType);
LPOLEOBJECT lpObject;
LONG FAR* lpType;
The OleQueryType function checks whether a specified object is embedded, linked, or static.
| Parameter | Description |
| lpObject | Points to the object for which the type is 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 successful; otherwise, it is OLE_ERROR_OBJECT.
See AlsoOleEnumFormats