C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-26-2009, 01:09 AM   #1
Registered User
 
Join Date: Apr 2006
Posts: 14
Post daemon how to in windows

Hi,

I want to start my c application and want it to run in background.

In linux we can use fork() and setsid() for this.

But, how can I run in windows.

If any examples provide me.

Thank you.
kalamram is offline   Reply With Quote
Old 10-26-2009, 03:45 AM   #2
&TH of undefined behavior
 
Fordy's Avatar
 
Join Date: Aug 2001
Posts: 5,183
Do a search for windows services. There are loads of code examples on the web
__________________
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
Albert Einstein (1879 - 1955)


Board Rules
Fordy is offline   Reply With Quote
Old 10-26-2009, 04:53 AM   #3
Registered User
 
Join Date: Apr 2006
Posts: 14
thank you.

But the examples are in dot net.

I need to know for daemon (windows services) in c.
kalamram is offline   Reply With Quote
Old 10-26-2009, 07:03 AM   #4
Registered User
 
Join Date: Dec 2007
Posts: 146
Let me google that for you

First link that comes up.
DaveH is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 98/2000 programming in Windows XP Bill83 Windows Programming 3 07-22-2005 02:16 PM
Dialog Box Problems Morgul Windows Programming 21 05-31-2005 05:48 PM
dual boot Win XP, win 2000 Micko Tech Board 6 05-30-2005 02:55 PM
SDL and Windows nickname_changed Windows Programming 14 10-24-2003 12:19 AM
IE 6 status bar DavidP Tech Board 15 10-23-2002 05:31 PM


All times are GMT -6. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22