开发者

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

开发者 https://www.devze.com 2023-02-25 21:17 出处:网络
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 i

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消