RevokeDragDrop  01SF2X

Revokes the registration of the specified application window as a potential target for OLE drag-and-drop operations.

WINOLEAPI RevokeDragDrop(

    HWND hwnd

//Handle to a window that can accept drops

   );

 

 

Parameter

hwnd

[in] Handle to a window previously registered as a target for an OLE drag-and-drop operation.

 

Return Values

This function supports the standard return value E_OUTOFMEMORY, as well as the following:

S_OK

Registration as a target window was revoked successfully.

DRAGDROP_E_INVALIDHWND

Invalid handle returned in the hwnd parameter.

DRAGDROP_E_NOTREGISTERED

An attempt was made to revoke a drop target that has not been registered.

 

Remarks

When your application window is no longer available as a potential target for an OLE drag-and-drop operation, you must call RevokeDragDrop.

This function calls the IUnknown::ReleaseDUW01A method for your drop target interface.

See Also

RegisterDragDrop