Is there a way to programmatically determine which DLLs are loaded into a .NET process?

I know about GetAssemblies() , but only gets loaded managed assemblies.

In my particular case, I am using SQL Server Compact, and I want to know the exact native DLL loaded by the System.Data.SqlServerCe assembly (via DLLImport ).

+4
source share
1 answer

Check the DLL list in the bottom pane in Process Explorer.

If you want to do this in code, check Process.GetCurrentProcess().Modules .

+2
source

Source: https://habr.com/ru/post/1388509/


All Articles