OleUICanConvertOrActivateAs function (oledlg.h)

Determines if there are any OLE object classes in the registry that can be used to convert or activate the specified CLSID from.

Syntax

BOOL OleUICanConvertOrActivateAs(
  [in] REFCLSID rClsid,
  [in] BOOL     fIsLinkedObject,
  [in] WORD     wFormat
);

Parameters

[in] rClsid

The CLSID of the class for which the information is required.

[in] fIsLinkedObject

TRUE if the original object is a linked object; FALSE otherwise.

[in] wFormat

Format of the original class.

Return value

This function returns TRUE if the specified class can be converted to another class; FALSE otherwise.

Remarks

OleUICanConvertOrActivateAs searches the registry for classes that include wFormat in their \Conversion\Readable\Main, \Conversion\ReadWriteable\Main, and \DataFormats\DefaultFile entries.

This function is useful for determining if a Convert... menu item should be disabled. If the CF_DISABLEDISPLAYASICON flag is specified in the call to OleUIConvert, then the Convert... menu item should be enabled only if OleUICanConvertOrActivateAs returns TRUE.

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 oledlg.h
Library OleDlg.lib
DLL OleDlg.dll

See also

OleUIConvert