Reputation: 3446
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.
Upvotes: 0
Views: 1384
Reputation: 91270
See Version Information Functions on MSDN.
You'll need to GetFileVersionInfo
to get the version info data, then VerQueryValue
for the OriginalFilename
entry.
Upvotes: 5