GetModuleFileName (coredll)
Last changed: Joseph Cooney-123.243.157.225

.
Summary
Retrieves the fully-qualified path for the file that contains the specified module. The module must have been loaded by the current process.

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!

Documentation