rplusg
rplusg

Reputation: 3446

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.

Upvotes: 0

Views: 1384

Answers (1)

Erik
Erik

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

Related Questions