Partager via


GetDropTarget method

Enables the host to supply an alternative IDropTarget interface.

Syntax

HRESULT retVal = object.GetDropTarget(pDropTarget, ppDropTarget);

Parameters

  • pDropTarget [in]
    Type: IDropTarget

    A pointer to an IDropTarget interface for the current drop target object supplied by MSHTML.

  • ppDropTarget [out]
    Type: IDropTarget

    A pointer variable that receives an IDropTarget interface pointer for the alternative drop target object supplied by the host.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If the host does not supply an alternative drop target, this method returns a failure code, such as E_NOTIMPL or E_FAIL.