How to get loaded native Modules in an IL2CPP build?!

I am going crazy on this I have tried

Process.GetCurrentProcess().Modules

That gives this error on Il2CPP

ArgumentNullException: Collection cannot be null.
Parameter name: c
  at System.Collections.ArrayList.InsertRange (System.Int32 index, System.Collections.ICollection c) [0x00000] in <00000000000000000000000000000000>:0
  at System.Diagnostics.Process.get_Modules () [0x00000] in <00000000000000000000000000000000>:0

Then I tried psapi.h, this method works to get handles EnumProcessModulesEx, but when I try to call GetModuleFileNameEx in order to get the name of module. It gives error code 6. Don’t know whats wrong. Works in editor, but not IL2CPP.

Then I also tried doing this through powershell with Process.Start, but Process.Start does not work on IL2CPP.

How can I get a list of loaded native modules on IL2CPP?

try this one
AppDomain.CurrentDomain.GetAssemblies()