Results 1 to 5 of 5

Thread: Hooking drag and drop functionality of windows

  1. #1
    Join Date
    Mar 2011
    Posts
    71

    Hooking drag and drop functionality of windows

    I need some to perform hooking the drag and drop functionality of the windows XP. I try so many solutions but up till now i am not capable to discover an correct solution. I need to test the file's name before dropped in anywhere on system. The DLL help to hook the event being make by the drag and drop process. Urgently I need a help to solve this problem. Any type of help to solve this problem will be appreciates.

  2. #2
    Join Date
    Nov 2009
    Posts
    1,292

    Re: Hooking drag and drop functionality of windows

    You just require doing it with COM by put into action the IDropTarget interface in the existing application. Using this you need to supply a callback for IDropTarget : ragEnter technique. This will be help to called when you need to drags an object into the specific application. In this case, you need to test the IDataObject supplied. Then make a decision if it is acceptable. Use this technique and it really help to solve such problem.

  3. #3
    Join Date
    Nov 2009
    Posts
    1,035

    Re: Hooking drag and drop functionality of windows

    You require capturing the file name and the type of this file. Do this before drop it in on any application, folder or on desktop. I think you have cleared this thing. I read several article and then I found this technique. i think it is related to IDropTarget a solution. It enables your application to admit the drag n drop file. For doing the hook the shell events, use of SetWinEventHook. Then use this and it will be working to solve the problem existing in this system.

  4. #4
    Join Date
    May 2008
    Posts
    991

    Re: Hooking drag and drop functionality of windows

    Hooking this drag and drop functionality of windows you need to use the DoDragDrop and also need to catch the IDataObject dataobject in the proxy function. The IDataObject::getdata() will be useful to catch data wrapped in the data object make by the explorer.exe file. This is the shell and as a effect of Dragging action of user. Then use the filter data and this will be help to create new dataobject. Then call native DoDragDrop() among latest data object as parameter.

  5. #5
    Join Date
    May 2008
    Posts
    2,680

    Re: Hooking drag and drop functionality of windows

    The IDropTarget interface is useful to do such kind of task. You need to use this interface for Hooking drag and drop functionality of windows. It afford drag-and-drop operations in your existing application. The methods present in this interface will be used in any application. This method can be a target for data through a drag-and-drop operation. This interface contains methods that handle all these responsibilities.

Similar Threads

  1. Drag and drop files onto taskbar icon in windows 7
    By TheJoel in forum Customize Desktop
    Replies: 1
    Last Post: 23-06-2012, 05:34 PM
  2. Drag and Drop error in Windows Vista
    By Echa in forum Vista Setup and Install
    Replies: 4
    Last Post: 23-01-2012, 10:49 AM
  3. Moving the files without using drag and drop in Windows 7
    By Disha N in forum Operating Systems
    Replies: 4
    Last Post: 20-01-2011, 10:27 AM
  4. Drag and drop transcoding in windows 7
    By Susquehannock in forum Windows Software
    Replies: 6
    Last Post: 04-06-2010, 12:30 AM
  5. CMD drag and drop in Windows 7
    By Justvicks in forum Operating Systems
    Replies: 2
    Last Post: 20-03-2009, 06:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,007,797.34300 seconds with 16 queries