Thread: daemon how to in windows

  1. #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.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Do a search for windows services. There are loads of code examples on the web

  3. #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.

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    Let me google that for you

    First link that comes up.

Popular pages Recent additions subscribe to a feed

Similar Threads

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