Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IHTMLEventObj2::dataTransfer Property

Retrieves the IHTMLDataTransfer interface pointer of the event object.


HRESULT IHTMLEventObj2::get_dataTransfer(IHTMLDataTransfer **p);


Address of a pointer to an IHTMLDataTransfer interface that returns the event object.

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.

Community Additions

© 2015 Microsoft