Shakti saxena Shakti saxena - 1 year ago 119
C# Question

Checking if a WIN32 / Unmanaged DLL is loaded from a COM module on runtime

I want to check if a native dll is already loaded from a COM Module? My purpose is to check if the appropriate DLL is loaded so that I can call the corresponding methods on it. I referred the link "" but it did not help. My native module is also not shown in the Loaded Module list window in visual studio during debugging but it is shown when I set "Enable native code debugging"? is there a way to achieve the same through code?

Answer Source

Call GetModuleHandle passing the module's name. If the module is loaded in your process, a non-null value is returned.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download