Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adding a dll to every Launched App

Adding a dll to every Launched App

Scheduled Pinned Locked Moved C / C++ / MFC
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    schler
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • S schler

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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 <<

      A 1 Reply Last reply
      0
      • L Lost User

        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 <<

        A Offline
        A Offline
        Anthony Mai
        wrote on last edited by
        #3

        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:-)

        B 1 Reply Last reply
        0
        • A Anthony Mai

          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:-)

          B Offline
          B Offline
          Buck
          wrote on last edited by
          #4

          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

          L 1 Reply Last reply
          0
          • B Buck

            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

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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.

            S 1 Reply Last reply
            0
            • L Lost User

              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.

              S Offline
              S Offline
              schler
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups