IHTMLWindow3::clipboardData Property

Retrieves the data transfer object for the window. Using the data transfer object, you can write information to, and read it from, the Clipboard.


HRESULT IHTMLWindow3::get_clipboardData(IHTMLDataTransfer **p);


  • p
    Address of a pointer to an IHTMLDataTransfer interface that returns the data transfer element associated with the window.

Return Value

Returns S_OK if successful, or an error value otherwise.


The IHTMLDataTransfer interface retrieved by this method also provides access to IDataObject. Call QueryInterface on the IHTMLDataTransfer interface pointer to obtain an IServiceProvider interface pointer. Then call IServiceProvider::QueryService, using IID_IDataObject for the service and interface identifiers, to obtain an IDataObject interface pointer.