简体   繁体   中英

How can i get process original file name for a process?

say, i've a binary called vlc.exe, if i rename it to abc.exe, it still runs fine. But if you see properties of abc.exe, you can see an attribute "Original FileName" and its value is vlc.exe. So, is there an api to get this "Original FileName"?

Thanks in advance.

See Version Information Functions on MSDN.

You'll need to GetFileVersionInfo to get the version info data, then VerQueryValue for the OriginalFilename entry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM