Page 1 of 1

Can anyone help with modifying this DLL

Posted: Mon Sep 18, 2006 7:18 am
by localmotion34
so after woring with SnapperHelper.dll for a while, a huge bug has presented itself.

if you enable the tracking/zoom window, and call the Getregionimage or getwindow image function with certain types of windows open, the zoom window refuses to repaint itself.

The author has dissappeard, and no source is available anymore. So all i have to work with is the DLL itself.

What i want to do is stop the user from being able to show the popup menu with a right click that shows the options, EPSECIALY the "Toggle help" menuitem that displays this terrible window.

The DLL is free and the license states we are able to use it for anything. When the source WAS available, you were free to modify it in any way. So modding the DLL itself isnt a violation.

if you look at the example i provided on using the DLL and run it, when you call the functuons and right click on the screen, the menu pops up.

this is what i want to disable. I can then set the options through registry keys, and choose which ones i want the end user to be able to set.

i do not want this tracking window to be diplayed at all.

I know some of you out there are good reversers, so can you help me maybe nop out a few bytes to stop this menu from being diplayed, or help remove the menu from the DLL?

http://www.penguinbyte.com/apps/pbwebst ... erDemo.zip

Posted: Mon Sep 18, 2006 1:58 pm
by jack
here's a tutorial but it's C++, someone might be able to translate it to PB
http://www.codeproject.com/dll/DLL_Inje ... torial.asp

Posted: Mon Sep 18, 2006 4:04 pm
by KarLKoX

Posted: Thu Sep 21, 2006 3:39 pm
by thefool
LocalMotion i have been looking at the dll in ollydbg a little, but even though i have a little experience in reversing exe's, DLLs are new for me. So whenever i want to disable the menu, it seems like the dll wants to catch some info from it or so and i am too lazy to disable it all at the moment.

Now what you can do now:
http://www.angusj.com/resourcehacker/

Simply load the dll file and edit the menu's. This is a safe method; and this way you can have the "Abort capture" menu item enabled; or any other you might like :)

If you still want the menu completely removed, then i need to have another go with olly. i have an idea of how to do it; but i don't want to spend my time if this is good enough for you.

Posted: Thu Sep 21, 2006 3:55 pm
by localmotion34
@TheFool

Already tried editing the menus in Resource Tuner. SOMEHOW, the DLL re-modifies its menus at runtime, and regenerates the missing menu items.

I think I need to trap the menu being shown. Somehow, between the both of us, we should be able to get rid of the #wm_rbutton down message processing in the DLL, or something else.

Posted: Thu Sep 21, 2006 4:03 pm
by thefool
why does it do that? Here it works just fine!

Posted: Thu Sep 21, 2006 4:35 pm
by localmotion34
can you post your modified DLL so i can test it out?

Posted: Thu Sep 21, 2006 4:38 pm
by thefool
yep.

File:1->SnaperHelper.dll
Image

Posted: Fri Sep 22, 2006 3:25 pm
by thefool
so, localmotion. did it work?

Posted: Fri Sep 22, 2006 5:40 pm
by localmotion34
No. The "Toggle Help" Menu item was still there when calling the functions, and right clicking during screen capture.

Posted: Fri Sep 22, 2006 6:14 pm
by thefool
this is pretty funny. It worked great here!