Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have hooked DoDragDrop in explorer.exe using IAT hooking mathod. it works(my proxy function is called whenever a user drags any selected object in windows explorer). than after unhooking it, draging any selected object crashes explorer.exe.

My purpose behind hooking DoDragDrop is
To get IDataObject created by explorer.exe.
To read it.
To generate new IDataObject based on content in the IDataObject received in my proxy function.
and To call the original DoDragDrop with newly generated IDataObject.
( thus I filter out files dragged and dropped by user from Windows explorer to any application )

I have achieved my purpose through IAT hooking but it is not reliable.

Is there any documented way to fulfill my purpose?

Thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900