Retrieves a data object containing the current contents of the embedded object on which this method is called. Using the pointer to this data object, it is possible to create a new embedded object with the same data as the original.
HRESULT GetClipboardData( DWORD dwReserved, IDataObject **ppDataObject );
This parameter is reserved and must be zero.
Address of IDataObject pointer variable that receives the interface pointer to the data object. If an error occurs, ppDataObject must be set to NULL. Each time an object receives a call to IOleObject::GetClipboardData, it must increase the reference count on ppDataObject. It is the caller's responsibility to call Release when it is done with ppDataObject.
This method returns S_OK on success. Other possible return values include the following.
GetClipboardData is not supported.
||The object is not running.|
You can use the IOleObject::GetClipboardData method to convert a linked object to an embedded object, in which case the container application would call IOleObject::GetClipboardData and then pass the data received to OleCreateFromData. This method returns a pointer to a data object that is identical to what would have been passed to the clipboard by a standard copy operation.QueryInterface, then call IDataObject::DAdvise. IDataObject pointer for an object whose data will not change.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|