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 code | Description |
|---|---|
|
Insufficient access permissions. |
|
The operation failed. |
|
The specified identifier is not valid. |
|
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 |
|
See also
Show: