Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Revokes the registration of the specified application window as a potential target for OLE drag-and-drop operations.
HRESULT RevokeDragDrop(
[in] HWND hwnd
);
[in] hwnd
Handle to a window previously registered as a target for an OLE drag-and-drop operation.
This function returns S_OK on success. Other possible values include the following.
Return code | Description |
---|---|
|
An attempt was made to revoke a drop target that has not been registered. |
|
Invalid handle returned in the hwnd parameter. |
|
There is insufficient memory for the operation. |
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.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ole2.h |
Library | Ole32.lib |
DLL | Ole32.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today