问题: 32位程序在64位系统上调用GetModuleFileNameEx()遍历获取64位进程的全路径失败,得到的路径都为空. 根据官方的说法: For the best results use the following table to convert paths. Windows 2000 = GetModuleFileNameEx() Windows XP x32 = GetProcessImageFileName() Windows XP x64 = GetProcessImageF
string s = Environment.CurrentDirectory; //需添加Forms.DLL s = System.Windows.Forms.Application.StartupPath; s = System.Windows.Forms.Application.ExecutablePath; s = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName; s = System.Reflecti