internal static int GetModuleFileNameEx(MS.Internal.Automation.SafeProcessHandle hProcess, IntPtr hModule, StringBuilder buffer, int length) { int result = SafeNativeMethods.GetModuleFileNameEx(hProcess, hModule, buffer, length); int lastWin32Error = Marshal.GetLastWin32Error(); if (result == 0) { ThrowWin32ExceptionsIfError(lastWin32Error); } return(result); }
public static extern int GetModuleFileNameEx(MS.Internal.Automation.SafeProcessHandle hProcess, IntPtr hModule, StringBuilder buffer, int length);