CoIsOle1Class function

Determines whether the specified CLSID represents an OLE 1 object.

Syntax


BOOL CoIsOle1Class(
  _In_ REFCLSID rclsid
);

Parameters

rclsid [in]

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

 

 

Show: