views:

69

answers:

2

In the registry and in theme files you'll notice a lot of references to DLLs when it comes to display names.

For example:

[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default]
@="Windows"
"DispFileName"="@mmres.dll,-5856"

I've opened the mmres.dll file in PE Explorer, but I don't see any display names.

How can I retrieve the actuale display name behind the @mmres.dll,-5856 reference in C#?
How can I do this efficiently for many references?

+2  A: 

Here they talk about using RegLoadMuiString to read this. I assume that must be the optimised mechanism.

Preet Sangha
A: 

I think that you're looking for GetFileVersionInfoEx (http://msdn.microsoft.com/en-us/library/ms646981%28VS.85%29.aspx)

Paul Betts