Windows service
-
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...
-
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...
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:
-
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:
-
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...
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:
-
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:
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...
-
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:
-
:laugh:
Mark Salsbery Microsoft MVP - Visual C++ :java: