ConvertObject Method
Collapse the table of content
Expand the table of content

IOleUIObjInfo::ConvertObject method

Converts the object to the type of the specified CLSID.

Syntax


HRESULT ConvertObject(
  [in] DWORD    dwObject,
  [in] REFCLSID clsidNew
);

Parameters

dwObject [in]

A unique identifier for the object.

clsidNew [in]

The CLSID.

Return value

This method returns S_OK on success. Other possible return values include the following.

Return codeDescription
E_ACCESSDENIED

Insufficient access permissions.

E_FAIL

The operation failed.

E_INVALIDARG

The specified identifier is not valid.

E_OUTOFMEMORY

There is insufficient memory available for this operation.

 

Remarks

Notes to Implementers

Your implementation of IOleUIObjInfo::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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleDlg.h

See also

IOleUIObjInfo
OleUIConvert

 

 

Show:
© 2016 Microsoft