How to find out if the library (dll) is alredy loaded ?

  • Thread starter Thread starter Kristijan Marin
  • Start date Start date
K

Kristijan Marin

Hi,

I need to find out if the specific library is loaded and if so, then kill
or somehow stop it.

Has any one any clue how to do that ??


Thx guys.

Kris
 
For a native Dll you can P/Invoke GetModuleHandle and call it with the full
path of a dll, if it is loaded it will return a handle to the module,
otherwise null. You can then P/Invoke FreeLibrary and pass it this handle to
unload the dll.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Back
Top