If RegisterDragDrop() is called, then the notification of end drag is sent to the registered IDropTarget, not to the tree or parent window. I would hook RegisterDragDrop() and see if it is called when the drag/drop is started.
-- David
Search found 381 matches
- Fri Feb 08, 2008 5:54 pm
- Forum: madCodeHook
- Topic: TreeView control question
- Replies: 15
- Views: 16196
- Fri Feb 08, 2008 12:16 am
- Forum: madCodeHook
- Topic: TreeView control question
- Replies: 15
- Views: 16196
Kaarigar, You've already done the hard part: getting your DLL injected into the target process and subclassing the windows. I think now you need to learn how drag and drop works. Otherwise you won't know which stuff you have to hook. So I would start a temporary project with a tree control in it, an...
- Sun Oct 07, 2007 2:27 pm
- Forum: madCodeHook
- Topic: System wide hooks not hooking "user" processes
- Replies: 13
- Views: 13873
Another thing is to make sure you test all the parameters in your callback function before using them. For example, what if lpFilename is NULL? Does the string get constructed successfully? The injected app might have an exception handler that throws away the thrown exception when your hook does som...
- Sun Oct 07, 2007 3:49 am
- Forum: madCodeHook
- Topic: System wide hooks not hooking "user" processes
- Replies: 13
- Views: 13873
I'm not sure why Detours works and MCH does not, but the issue I see is: in the CreateFileACallback() you are calling file.open(), which probably does a CreateFile() call and thus makes this recursive. If i intercept file hooks, I use SendMessage(WM_COPYDATA, ...) to a logger application which avoid...
- Fri Sep 14, 2007 4:13 pm
- Forum: madCodeHook
- Topic: Api hooks really system wide?
- Replies: 6
- Views: 7181
- Thu Aug 30, 2007 5:34 am
- Forum: madCodeHook
- Topic: Shared memory
- Replies: 6
- Views: 7575
- Fri Aug 24, 2007 12:31 am
- Forum: madCodeHook
- Topic: Shared memory
- Replies: 6
- Views: 7575
- Fri Aug 24, 2007 12:26 am
- Forum: madCodeHook
- Topic: Static, dynamic, implicit and explicit linking
- Replies: 1
- Views: 3306
- Tue Jul 31, 2007 2:53 am
- Forum: madCodeHook
- Topic: Detecting "paste from clipboard"
- Replies: 5
- Views: 5869
- Thu Jul 19, 2007 11:54 pm
- Forum: madCodeHook
- Topic: blocking file execution and movement with NtCreate/Openfile
- Replies: 11
- Views: 13404
Couldn't you hook NtWriteFile and set a flag that says the file was written to, and back it up when NtClose was called? Too late. In the moment when you let NtWriteFile pass, the original file data is already destroyed. I thought the idea was to back up the file *after* it has been changed. -- David
- Thu Jul 19, 2007 1:45 pm
- Forum: madCodeHook
- Topic: How madchook detect process execution?
- Replies: 12
- Views: 10209
- Thu Jul 19, 2007 1:44 pm
- Forum: madCodeHook
- Topic: blocking file execution and movement with NtCreate/Openfile
- Replies: 11
- Views: 13404
- Mon Jul 16, 2007 12:54 pm
- Forum: madCodeHook
- Topic: restricting an application / processes life span
- Replies: 4
- Views: 4594
- Sun Jul 15, 2007 5:14 pm
- Forum: madCodeHook
- Topic: restricting an application / processes life span
- Replies: 4
- Views: 4594
Regarding the timer, I've never used CreateWaitableTimer() either, but it seems maybe this is what you really need. For simplicity, you could just open a handle on the current process and then do a WaitForSingleObject() with a timeout value of the desired timeout. When the thread is woken up, check ...
- Sun Jul 15, 2007 5:06 pm
- Forum: madCodeHook
- Topic: hooking gdi
- Replies: 12
- Views: 10657