Thread: dll's

  1. #1
    no_one
    Guest

    Question dll's

    Need some code that will check to see if a certain dll is loaded . Please help.

  2. #2
    no_one
    Guest
    can someone please point me in the right direction? What I am trying to do is if a dll is loaded when I run a certain program that it will either unload the dll or the exe using it.

    thanks for any help..

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    There are some APIs that enumerate Processes (EnumProcesses()) ...and then the modules loaded into those processes (EnumProcessModules()).......that might work......but the machine I am on is Win98 and so does not have the PSAPI.dll that I need to link to these system calls.......

    If you have WinNT and above you may want to look at this perhaps....If I can I will try and have a go tonight to see if this works....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Protection of DLLs
    By Poche in forum C# Programming
    Replies: 5
    Last Post: 06-04-2009, 08:30 PM
  2. Some doubts on DLLs
    By BrownB in forum Windows Programming
    Replies: 1
    Last Post: 05-30-2007, 02:25 AM
  3. standart dlls
    By keeper in forum C++ Programming
    Replies: 3
    Last Post: 07-05-2006, 07:32 PM
  4. Can't load string from resource DLL's string table
    By s_k in forum Windows Programming
    Replies: 4
    Last Post: 07-15-2003, 06:43 AM
  5. question about DLL's and class functions
    By btq in forum Windows Programming
    Replies: 2
    Last Post: 02-25-2003, 06:08 AM