DLL hooking into 2 programs

This is a discussion on DLL hooking into 2 programs within the Windows Programming forums, part of the Platform Specific Boards category; Can a DLL hook into 2 programs at the same time?...

  1. #1
    Frustrated Programmer :( phantom's Avatar
    Join Date
    Sep 2001
    Posts
    163

    DLL hooking into 2 programs

    Can a DLL hook into 2 programs at the same time?
    My site to register for all my other websites!
    'Clifton Bazaar'

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    Two copies of the same DLL, yes. It is loaded into each process separately so cannot be shared between them.

  3. #3
    Frustrated Programmer :( phantom's Avatar
    Join Date
    Sep 2001
    Posts
    163
    Thanks for the reply
    My site to register for all my other websites!
    'Clifton Bazaar'

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    26
    Quote Originally Posted by SMurf View Post
    Two copies of the same DLL, yes. It is loaded into each process separately so cannot be shared between them.
    It is not two copies actually. The runtime makes it appear so, but it's just one copy mapped into two respective address spaces of these processes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dll Injection Question
    By zenox in forum C Programming
    Replies: 13
    Last Post: 03-15-2008, 10:54 AM
  2. how to monitor exe and dll interactions?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 10-26-2007, 04:22 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  4. C++ .NET - "inconsistent dll linkage" - What's that?
    By BrianK in forum Windows Programming
    Replies: 2
    Last Post: 03-16-2004, 09:16 AM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 04:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21