-
April 7th, 2014, 02:42 PM
#1
Hook firefox window to get WM_CLOSE & WM_QUIT
I'd like to make a DLL, which I inject into firefox upon starting. This DLL would look for thoose two events (WM_CLOSE / WM_QUIT). If it's found, then it executes some code, BUT the main process shouldn't quit, since it would terminate my dll too
I'm really noobie in C++ and any kind of programming, I'm still learning a lot. I've got no idea how to start. I've already made the injectable DLL.
I tried to set up a Callback, but obviously it isn't working. Could you help me how could I run my own code before closing the firefox?
Thanks for the help!
-
April 7th, 2014, 03:14 PM
#2
Re: Hook firefox window to get WM_CLOSE & WM_QUIT
So how will users close FireFox?
-
April 7th, 2014, 03:23 PM
#3
Re: Hook firefox window to get WM_CLOSE & WM_QUIT
Originally Posted by Unc3nZureD
This DLL would look for thoose two events (WM_CLOSE / WM_QUIT). ... then it executes some code,
What kind of code is it supposed to be? and what for?
Originally Posted by Arjay
So how will users close FireFox?
using the Task Manager?
Victor Nijegorodov
-
April 7th, 2014, 03:35 PM
#4
Re: Hook firefox window to get WM_CLOSE & WM_QUIT
Sorry, I wasn't clear. It will exit after running my code. I mean I'd like to inject a code before exiting.
-
April 7th, 2014, 03:42 PM
#5
Re: Hook firefox window to get WM_CLOSE & WM_QUIT
I can't edit anymore, now I'm writing my reason why I want it
I'd like to encrypt my passwords file with my own algorhytm. I know I can't 100% protect it, but if it's unique, noone will be able to steal them :P [Since it's really easy to decrypt firefox passwords] I wouldn't like to use master password.
I'd like to clean up things before exit.
-
April 8th, 2014, 06:30 AM
#6
Re: Hook firefox window to get WM_CLOSE & WM_QUIT
Will be a lot easier to just download the Firefox source, and replace the password file code.
Or if you can't/don't want do that, create a password manager plugin for Firefox.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|