http://hi.baidu.com/jilan1990/item/aa302712da336b9798ce3363
http://msdn.microsoft.com/en-us/library/ms684919%28VS.85%29.aspx
你用的这个函数只在windows vista以上版本中存在,各版本相应功能函数如下
Windows 2000 = GetModuleFileName()
Windows XP x32 = GetProcessImageFileName()
Windows XP x64 = GetProcessImageFileName()
Windows Vista = QueryFullProcessImageName()
Windows 7 = QueryFullProcessImageName()
事实证明,擅长百度和提问时多提供一些信息,都有助于解决问题