CoIsOle1Class function (objbase.h)
Determines whether the specified CLSID represents an OLE 1 object.
Syntax
BOOL CoIsOle1Class(
[in] REFCLSID rclsid
);
Parameters
[in] rclsid
The CLSID to be checked.
Return value
If the CLSID refers to an OLE 1 object, the return value is TRUE; otherwise, it is FALSE.
Remarks
The CoIsOle1Class function determines whether an object class is from OLE 1. You can use it to prevent linking to embedded OLE 1 objects within a container, which OLE 1 objects do not support. After a container has determined that copied data represents an embedded object, the container code can call CoIsOle1Class to determine whether the embedded object is an OLE 1 object. If CoIsOle1Class returns TRUE, the container does not offer CF_LINKSOURCE as one of its clipboard formats. This is one of several OLE compatibility functions. The following compatibility functions, listed below, can be used to convert the storage formats of objects between OLE 1 and OLE.
- OleConvertIStorageToOLESTREAM
- OleConvertIStorageToOLESTREAMEx
- OleConvertOLESTREAMToIStorage
- OleConvertOLESTREAMToIStorageEx
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | objbase.h |
Library | Ole32.lib |
DLL | Ole32.dll |