Search code examples
.netdllassembliesunmanagedmanaged

Is this DLL managed or unmanaged?


I hold before you a DLL. Using only the Win32 SDK, can you tell me if this DLL is a .NET assembly?

Why? Our application loads plugins in the form of DLLs. We are trying to extend the definition of these plugins to allow for .NET assemblies but the interface will be different and thus the loader will need to know if the DLL is managed or unmanaged before loading it.


Solution

  • You can check the PE header information for the information about what type of information is contained in the DLL. This article describes how to accomplish this in detail.