Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OleUICanConvertOrActivateAs

OleUICanConvertOrActivateAs function

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

rClsid [in]

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

fIsLinkedObject [in]

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

wFormat [in]

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleDlg.h

Library

OleDlg.lib

DLL

OleDlg.dll

See also

OleUIConvert

 

 

Community Additions

ADD
Show:
© 2015 Microsoft