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. Managed C++/CLI
  4. Windows service

Windows service

Scheduled Pinned Locked Moved Managed C++/CLI
c++windows-adminhelpannouncement
7 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.
  • Z Offline
    Z Offline
    zafax_
    wrote on last edited by
    #1

    hi, guys. im developing a software for my personal use in C++. i want program to start as windows service, when windows starts it should start too. - i need create a key (string) in registry. - i need to make it firewall enable. HKLM/Software/Microsoft/Windows/Current Version/run/myprogram.exe can you provide me a peace of code so i can construct my program. anyone who help me thanks so much.

    so much of happy ending...

    M 1 Reply Last reply
    0
    • Z zafax_

      hi, guys. im developing a software for my personal use in C++. i want program to start as windows service, when windows starts it should start too. - i need create a key (string) in registry. - i need to make it firewall enable. HKLM/Software/Microsoft/Windows/Current Version/run/myprogram.exe can you provide me a peace of code so i can construct my program. anyone who help me thanks so much.

      so much of happy ending...

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Try searching this site for articles about services and accessing the registry....I bet there's lots of them :) Reference material: Services[^] Registry[^] Since you've posted on the managed C++ board, I'll assume you're using managed C++.  In that case, there's an appwizard in visual studio that will create a managed service application for you. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      Z 1 Reply Last reply
      0
      • M Mark Salsbery

        Try searching this site for articles about services and accessing the registry....I bet there's lots of them :) Reference material: Services[^] Registry[^] Since you've posted on the managed C++ board, I'll assume you're using managed C++.  In that case, there's an appwizard in visual studio that will create a managed service application for you. Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        Z Offline
        Z Offline
        zafax_
        wrote on last edited by
        #3

        Thanks mark for helping. :) i was hoping get a sample or code of what i have mentioned here. yeah thats right there are lot of sites saying so. thanks mark

        so much of happy ending...

        M 1 Reply Last reply
        0
        • Z zafax_

          Thanks mark for helping. :) i was hoping get a sample or code of what i have mentioned here. yeah thats right there are lot of sites saying so. thanks mark

          so much of happy ending...

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          zafax4 wrote:

          yeah thats right there are lot of sites saying so.

          I'm not sure what you mean by that... Anyway, type "windows service" into the search box at the top of this page. When you get the list of hits, you can refine your search to just C++-related articles. I just tried it....there was many articles on creating Windows Services there. Most articles have source code you can download. Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          Z L 2 Replies Last reply
          0
          • M Mark Salsbery

            zafax4 wrote:

            yeah thats right there are lot of sites saying so.

            I'm not sure what you mean by that... Anyway, type "windows service" into the search box at the top of this page. When you get the list of hits, you can refine your search to just C++-related articles. I just tried it....there was many articles on creating Windows Services there. Most articles have source code you can download. Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            Z Offline
            Z Offline
            zafax_
            wrote on last edited by
            #5

            Thanks mark, zafax4 wrote: //yeah thats right there are lot of sites saying so. it means there are lot of websites about win services and registry files concepts, im currently searching for them. i hope you understand my words now. i wonder what i am doing here:confused: thanks.

            so much of happy ending...

            1 Reply Last reply
            0
            • M Mark Salsbery

              zafax4 wrote:

              yeah thats right there are lot of sites saying so.

              I'm not sure what you mean by that... Anyway, type "windows service" into the search box at the top of this page. When you get the list of hits, you can refine your search to just C++-related articles. I just tried it....there was many articles on creating Windows Services there. Most articles have source code you can download. Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              zafax4 wrote:

              i wonder what i am doing here

              ROTFLMAO I'm laughing tears

              M 1 Reply Last reply
              0
              • L led mike

                zafax4 wrote:

                i wonder what i am doing here

                ROTFLMAO I'm laughing tears

                M Offline
                M Offline
                Mark Salsbery
                wrote on last edited by
                #7

                :laugh:

                Mark Salsbery Microsoft MVP - Visual C++ :java:

                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