Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 373983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:21:40+00:00 2026-05-12T14:21:40+00:00

I have a problem in understanding the relationship between services and registry. I have

  • 0

I have a problem in understanding the relationship between services and registry.

I have the task of taking my windows C++ program and transform it from simple application to a service.
I read that I need to produce some more functions as: start stop resume install.
The problem is:

  1. Why I need the regisrty ?

  2. how I enter the new program ?

  3. Beside those method what I need to do with the registry? how I enter inside it ?

  4. Do I need to write a script for entering the service ?

I read but I just didn’t understand, any answear and or some good links to explanation will be appreciated.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:21:40+00:00Added an answer on May 12, 2026 at 2:21 pm

    I’m not aware of any documented relationship between services and the registry. Services can use the registry to store their settings, just like any other application, but they’re not required to.

    1. Formally, you don’t need the registry. You simply need to install the service using the relevant API functions. As part of their implementation, the API functions create registry entries that the OS uses later to know when and how to start your service, but I don’t think those keys are documented with any expectation that developers would modify them manually, so don’t worry about them.

      If your program uses the registry to store settings, though, you’ll need to understand what account your service runs as, because that affects what areas of the registry your program has access to.

    2. Install your service by calling CreateService. Do that in your program’s installer. You can also make your service install itself when it detects itself being run with a certain command-line switch, such as -i. To uninstall your service, call OpenService and then DeleteService. In either case, you’ll need to call OpenSCManager first. See MSDN for more on how to call those functions.

      Alternatively, you can use the sc command to create and delete your service.

    3. As I mentioned above, you don’t need to do anything with the registry. Just install and uninstall your service with the API and let the OS take care of the rest.

    4. You don’t need to write any scripts to start your service. The OS already knows how to start it (because it’s installed). If your service is something that users would want to start and stop frequently, then rather than use the service control panel then they can use the net or sc commands.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem understanding an UML below: Specifically, what is the relationship between
I have a problem in understanding the exact difference between modules and namespaces in
There are many skills a programmer could have (understanding the problem, asking good questions,
I have a problem with a little .Net web application which uses the Amazon
I have been building a new application using my current understanding of domain driven
We have this really weird problem in a Web Application when using ActiveRecord 2.0
I have a problem with the understanding MVC architecture. It's not that I don't
I'm having a problem understanding how to do something in LINQ. I have a
I have a problem understanding properties. What kind of property should I write if
The Android documentation being the mess that it is, I have big problem understanding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.