Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Windows Service description

Windows Service description

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kri5
    wrote on last edited by
    #1

    Anyone knows how to set the description text for a Windows Service? (the text in the second column of the Services MMC window). Tnx

    B S 2 Replies Last reply
    0
    • K Kri5

      Anyone knows how to set the description text for a Windows Service? (the text in the second column of the Services MMC window). Tnx

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      If your program only runs on Windows 2000 or later, use ChangeServiceConfig2 with the SERVICE_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.

      K 1 Reply Last reply
      0
      • K Kri5

        Anyone knows how to set the description text for a Windows Service? (the text in the second column of the Services MMC window). Tnx

        S Offline
        S Offline
        skornel
        wrote on last edited by
        #3

        Here's how I do it. SERVICE_DESCRIPTION Descr = {(LPSTR)GetServiceDescription()}; ChangeServiceConfig2(schService, SERVICE_CONFIG_DESCRIPTION, &Descr);

        K 1 Reply Last reply
        0
        • B Blake Miller

          If your program only runs on Windows 2000 or later, use ChangeServiceConfig2 with the SERVICE_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.

          K Offline
          K Offline
          Kri5
          wrote on last edited by
          #4

          Tnx!

          1 Reply Last reply
          0
          • S skornel

            Here's how I do it. SERVICE_DESCRIPTION Descr = {(LPSTR)GetServiceDescription()}; ChangeServiceConfig2(schService, SERVICE_CONFIG_DESCRIPTION, &Descr);

            K Offline
            K Offline
            Kri5
            wrote on last edited by
            #5

            Tnx!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups