int exePathLen = CoreDllWrapper.GetModuleFileName(IntPtr.Zero, exePath, exePath.Capacity);
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.
4/12/2013 7:13:07 AM - -200.166.53.1
Click to read this page
10/2/2011 2:35:57 AM - txzhgh-89.110.151.174
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.