GetModuleFileNameEx
GetProcessImageFileName

解决方案 »

  1.   

    To retrieve the module name of the current process, use the GetModuleFileName function with a NULL module handle. This is more efficient than calling the GetProcessImageFileName function with a handle to the current process.To retrieve the name of the main executable module for a remote process in win32 path format, use the QueryFullProcessImageName function.已经解决  使用 QueryFullProcessImageName 函数即可!
      

  2.   

    GetModuleFileNameEx
    也可以的吧!
      

  3.   


    QueryFullProcessImageName这个要Vista以上系统才能用,小心面试时用的XP