Windows Service description
-
Anyone knows how to set the description text for a Windows Service? (the text in the second column of the Services MMC window). Tnx
If your program only runs on Windows 2000 or later, use
ChangeServiceConfig2
with theSERVICE_CONFIG_DESCRIPTION
if the service is already installed. Otherwise, you will need to edit/add a registry entry under your service. Hive = HKEY_LOCAL_MACHINE Key = SYSTEM\CurrentControlSet\Services\ Value = Description Type = REG_SZ Supply the text you want for the descripiton. -
Anyone knows how to set the description text for a Windows Service? (the text in the second column of the Services MMC window). Tnx
-
If your program only runs on Windows 2000 or later, use
ChangeServiceConfig2
with theSERVICE_CONFIG_DESCRIPTION
if the service is already installed. Otherwise, you will need to edit/add a registry entry under your service. Hive = HKEY_LOCAL_MACHINE Key = SYSTEM\CurrentControlSet\Services\ Value = Description Type = REG_SZ Supply the text you want for the descripiton. -
Here's how I do it. SERVICE_DESCRIPTION Descr = {(LPSTR)GetServiceDescription()}; ChangeServiceConfig2(schService, SERVICE_CONFIG_DESCRIPTION, &Descr);