IOleUIObjInfo::ConvertObject

Converts the object to the type of the new CLSID.

HRESULT ConvertObject(
  DWORD dwObject,    //Unique 32-bit object identifier
  REFCLSID clsidNew  //CLSID to convert the object to
);
 

Parameters

dwObject
[in] Unique 32-bit identifier for the object.
clsidNew
[in] CLSID to convert the object to.

Return Values

This method supports the standard return values E_FAIL,

E_INVALIDARG, and E_OUTOFMEMORY, as well as the following:

S_OK
Successfully returned link information.
E_ACCESSDENIED
Insufficient access permissions.

Remarks

Notes To Implementers

Your implementation of ConvertObject needs to convert the object to the CLSID specified. The actions taken by the convert operation are similar to the actions taken after calling OleUIConvert.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in oledlg.h.

See Also

OleUIConvert