Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

RevokeDragDrop function

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

Syntax


HRESULT RevokeDragDrop(
  _In_  HWND hwnd
);

Parameters

hwnd [in]

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

Return value

This function returns S_OK on success. Other possible values include the following.

Return codeDescription
DRAGDROP_E_NOTREGISTERED

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

DRAGDROP_E_INVALIDHWND

Invalid handle returned in the hwnd parameter.

E_OUTOFMEMORY

There is insufficient memory for the operation.

 

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Ole2.h

Library

Ole32.lib

DLL

Ole32.dll

See also

RegisterDragDrop

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.