To locate the file for a module that was loaded by another process, use the GetModuleFileNameEx function.
C# Signature:
[DllImport("coredll.dll", SetLastError=true)]
private static extern int GetModuleFileName(IntPtr hModule, byte[] lpFilename, int nSize);
VB Signature:
Declare Function GetModuleFileName Lib "coredll.dll" (TODO) As TODO
User-Defined Types:
None.
Alternative Managed API:
Do you know one? Please contribute it!
Notes:
Taken from OpenNETCF.Reflection.AssemblyEx
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Retrieves the fully-qualified path for the file that contains the specified module loaded by specified process.
To locate the file for a module that was loaded by current process, use the GetModuleFileName function.