OleQueryOpen

3.1

  #include <ole.h>    

  OLESTATUS OleQueryOpen(lpObject)    
  LPOLEOBJECT lpObject; /* address of object to query */

The OleQueryOpen function checks whether the specified object is open.

Parameters

lpObject

Points to the object to query.

Return Value

The return value is OLE_OK if the object is open. Otherwise, it is an error value, which may be one of the following:

OLE_ERROR_COMM
OLE_ERROR_OBJECT
OLE_ERROR_STATIC

See Also

OleActivate