Adding a dll to every Launched App
-
Hi, I wanted to know if there is a way to cause every application (installed on my computer, even those I didn't develop) to load a specific dll... thx Jonathan
Jonathan, I found this on Deja, but not much else. Maybe someone else will have more hands-on experience with this: >> Hi, All! I have following problem: When user executes particular process(console) I need insert my DLL into this process as soon as possible. I need this for NT and 98. There are several ways to do this but none of them doesn't give full = solution. 1. Use hooks(SetWindowsHookEx). This is nice solution that works on both systems, but my hook DLL will be loaded to target process, only when one of the events i'm hooking occurs. And this is too late for me. 2. There is some registry key where I can put name of my DLL and it will be loaded to every process. Two disadvantages: works on NT only and reboot is needed. 3. Use technique used by Richter in his book using CreateRemoteThread. This one is good, but still works only on NT. Does anybody knows other usefull technique for doing this. Regards, Dennis <<
-
Jonathan, I found this on Deja, but not much else. Maybe someone else will have more hands-on experience with this: >> Hi, All! I have following problem: When user executes particular process(console) I need insert my DLL into this process as soon as possible. I need this for NT and 98. There are several ways to do this but none of them doesn't give full = solution. 1. Use hooks(SetWindowsHookEx). This is nice solution that works on both systems, but my hook DLL will be loaded to target process, only when one of the events i'm hooking occurs. And this is too late for me. 2. There is some registry key where I can put name of my DLL and it will be loaded to every process. Two disadvantages: works on NT only and reboot is needed. 3. Use technique used by Richter in his book using CreateRemoteThread. This one is good, but still works only on NT. Does anybody knows other usefull technique for doing this. Regards, Dennis <<
This can not be done. And whatever your legitimate purpose is, there must be a better approach to implement it. And your request sounds and smells suspiciously like a virus project: It fits the definition of a computer virus:-)
-
This can not be done. And whatever your legitimate purpose is, there must be a better approach to implement it. And your request sounds and smells suspiciously like a virus project: It fits the definition of a computer virus:-)
I agree about the suspiscious smell Actually I think it sounds and smells more like a Worm ! (technically different animals) Unfortunatly I believe it can be done under some circumstances. 1. Using IE 4+ with low security settings, 2. Lack of a good firewall 3. Silly user, I'm unsure how possible it is with WinNT and W2K but it sure works with Win98. But as to posting how it is done, No I won't unless the person wishing to do so, Contacts me and explains why they wish to do it, with a legit reason etc. And then I'll only tell them which MS-Press books to buy :-) Regardz
-
I agree about the suspiscious smell Actually I think it sounds and smells more like a Worm ! (technically different animals) Unfortunatly I believe it can be done under some circumstances. 1. Using IE 4+ with low security settings, 2. Lack of a good firewall 3. Silly user, I'm unsure how possible it is with WinNT and W2K but it sure works with Win98. But as to posting how it is done, No I won't unless the person wishing to do so, Contacts me and explains why they wish to do it, with a legit reason etc. And then I'll only tell them which MS-Press books to buy :-) Regardz
Hmmmm, I hadn't though of malicious uses of the information. I don't think the info is really that hard to find, MSDN documents the processes pretty thoroughly. I've run into circumstances that would require this process, for example, imagine you wanted to add spell checking to standard edit controls, in every application. So, Jonathan, let's hear about what you're trying to do, so we keep everyone motivated to share.
-
Hmmmm, I hadn't though of malicious uses of the information. I don't think the info is really that hard to find, MSDN documents the processes pretty thoroughly. I've run into circumstances that would require this process, for example, imagine you wanted to add spell checking to standard edit controls, in every application. So, Jonathan, let's hear about what you're trying to do, so we keep everyone motivated to share.
Hi to all Suspicious People, My simple purpose for that is, that I have to launch a third-party application via automation, and due to some reasons that 3rd party application, crashes. In order to "avoid" that crash dialog box, and make the crash cleaner, I wanted to catch the 2nd try exception, and when caught, to shut-down that problematic application.... That's All.... Hope you can sleep better at night now... Jonathan P.S. Still intereted in answers please... thanks