Thread: DLL hooking into 2 programs

  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,273
    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
    30
    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, 10:16 AM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM