Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function determines if a given CLSID represents an OLE 1 object.
Syntax
BOOL CoIsOle1Class( REFCLSID rclsid ); |
Parameters
- rclsid
-
[in] CLSID to check.
Return Value
- TRUE
-
CLSID refers to an OLE 1 object.
- FALSE
-
CLSID does not refer to an OLE 1 object.
Remarks
CoIsOle1Classdetermines whether an object class is from OLE 1. Your application can use it to prevent linking to embedded OLE 1 objects within a container, which OLE 1 objects do not support.
When a container has determined that copied data represents an embedded object, the container code can call CoIsOle1Classto determine whether the embedded object is an OLE 1 object.
If CoIsOle1Classreturns TRUE, the container does not offer CF_LINKSOURCE as one of its clipboard formats. This is one of several OLE compatibility functions.
Other compatibility functions, listed below, can be used to convert the storage formats of objects between OLE 1 and OLE.
To determine whether the platform supports this function, see Determining Supported COM APIs.
Requirements
Header | objbase.h |
Library | ole32.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |