IHTMLEventObj2::dataTransfer Property

Retrieves the IHTMLDataTransfer interface pointer of the event object.

Syntax

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

Parameters

  • 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.

Remarks

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.