OleQueryType

  OLESTATUS OleQueryType(lpObject, lpType);    
  LPOLEOBJECT lpObject; /* pointer to object to query */
  LONG FAR* lpType; /* pointer to type of object */

The OleQueryType function determines whether a specified object is linked, embedded, or static.

Parameters

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.

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can be OLE_ERROR_OBJECT or OLE_ERROR_GENERIC.

See Also

OleEnumFormats