public static String GetMappedFileName(IntPtr hModule)
{
var mappedFileName = String.Empty;
const int bufLen = 260;
var buffer = new StringBuilder(bufLen);
int len = Kernel32Interop.GetMappedFileName(Kernel32Interop.GetCurrentProcess(),
hModule,
buffer,
buffer.Capacity);
if (len != 0)
{
mappedFileName = buffer.ToString();
}
return mappedFileName;
}