RevokeDragDrop

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

HRESULT RevokeDragDrop(

HWND hwnd
//Window that can accept drops
);

Parameter

hwnd

Specifies the handle to a window previously registered as a target for an OLE drag and drop operation.

Return Values

S_OK

Indicates registration as a target window was revoked successfully.

DRAGDROP_E_INVALIDHWND

Indicates invalid handle returned in the hwnd parameter.

DRAGDROP_E_NOTREGISTERED

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

E_OUTOFMEMORY

Out of memory.

Comments

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::Release method for your drop target interface.

See Also

RegisterDragDrop

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database