Share this topic on AskShare this topic on Del.icio.usShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on RedditShare this topic on SlashdotShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: How can I retrieve the Display Name of service from registry value?  (Read 758 times)

0 Members and 1 Guest are viewing this topic.

Offline JohnActive

  • New Member
  • *
  • Posts: 2
 
 
 
In Vista the display name of services shows with the dll name and a numeric parameter value.
 
How can I retrieve the exact display name and description of that
 
 
 
For Example:
 
Registry Path: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services"
Service Name: "AppMgmt"
Display Name in the registry: "@appmgmts.dll,-3250"
Description in the registry: "@appmgmts.dll,-3251"
 
Actual Display name in Services list (Services.msc):  "Application Management"
Actual Description in Services list (Services.msc):  "Processes installation, removal, and enumeration requests for software deployed through Group"
 
 
My doubt is how to get the value "Application Management" from "@appmgmts.dll,-3250"?
 
Could some one please help .....
 
 
 

Offline Black Viper

  • Administrator
  • ******
  • Posts: 2260
  • "Have you tweaked your OS lately?"
    • Black Viper's Web Site
You would have to query the dll file directly.
This change could be due to a maximum of 1024 characters in a registry key. At least, that is the way it was with XP. Thus, a description could be longer then the key limit of 1k if linked into a dll.

Offline couttsj

  • Hero Member
  • *****
  • Posts: 528
If I understand your question correctly, you want to know how to correlate the Service Name with the Display name with the Library File name. The first two are available in the Service Manangement window (services.msc). Using Application Management as an example, it lists under properties:
Service name: AppMgmt
Display name: Application Mamagement
The Library File name is usually quite closely associated to the Service name, and is found in the Registry listed by the Service name under the Parameters key:
Service Dll       REG_EXPAND_SZ      %Systemroot%\System32\appmgmts.dll

J.A. Coutts

Offline JohnActive

  • New Member
  • *
  • Posts: 2
 
 
Dear Coutts / Back Viper,
 
Thank you for the response.
 
 
Black Viper: Could you please get me a sample code to query the DLL get the value.
 
Here for example How will we query to the appmgmts.dll and get the display name?
 
Thank you in advance.
John
 
 
 

Offline Black Viper

  • Administrator
  • ******
  • Posts: 2260
  • "Have you tweaked your OS lately?"
    • Black Viper's Web Site
Black Viper: Could you please get me a sample code to query the DLL get the value.
Sorry, I am not a programmer. :)