Jump to content

Making a Daemon in Windows (C)

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Furiwel

Furiwel

    Newbie

  • Members
  • Pip
  • 5 posts
Hello everybody,
Im trying to make a daemon in windows with C. I know that I cant use fork because its for linux, and that was my only option lol.
Any idea?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
In windows, they are called Services. That will help your google searches a lot.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
The Windows equivalent of fork() is spawn(). That's all I know.
Programming is a journey, not a destination.

#4
Bartonlee

Bartonlee

    Newbie

  • Members
  • Pip
  • 1 posts
Depending upon your requirements a Windows Service might be what you need, but you're probably better off with CreateProcess(). See the MSDN documentation for it at ...

CreateProcess function

There's some example code there too.

#5
Furiwel

Furiwel

    Newbie

  • Members
  • Pip
  • 5 posts
I will try, thanks guys




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users