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
GetFileVersionInfoto get the version info data, thenVerQueryValuefor theOriginalFilenameentry.