In order for a process to load a 32-bit DLL, the process must be 32-bit. And the same goes for 64-bit. So, to find out what was loaded, assuming it already worked, you just need to know the CLR bitmap:
if (System.IntPtr.Size == 8) { // 64-bit } else { // 32-bit }
PS. for a discussion of whether you need to check for size 16, see my answer to this question .
source share