Groups | Blog | Home
all groups > dotnet interop > january 2007 >

dotnet interop : Look for loaded DLL


MLM450 NO[at]SPAM hotmail.com
1/9/2007 6:56:09 AM
My C# control calls a function in an unmanaged DLL. I only want to call
the function if the DLL has already been loaded. The DLL has a function
used to initialize it and I do not have the data required for its
parameters.

Is there a way to tell if the DLL is already loaded?
Mattias Sjögren
1/9/2007 10:38:47 PM
[quoted text, click to view]

Call the GetModuleHandle API.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button