- NT Services
- Posted by Radamanthe on February 2nd, 2007
Hi everyone.
I have been unable to find a good starting point for developping
softwares intended to be used as "services" (deamons) on Windows NT
platforms (in C/C++). Can someone give me a link or something about
"services" ? This is a very common word, you know...
More specifically, is it possible to development such services with
open-source tools like Mingw without too much drawbacks (and without
using Visual Studio) ?
--
R.N.
- Posted by PJ Naughter on February 2nd, 2007
On Fri, 02 Feb 2007 21:48:28 +0100, Radamanthe
<tek512@free.deleteme.fr> wrote:
Not sure if it is exactly what you want, but there is an open source
MFC C++ library for developing NT Services on my web site at
www.naughter.com/serv.html. It will require Visual Studio to compile
but even so, you can use it as a reference for how to write a service
in C++. It also include some references for further research.
Regards,
PJ Naughter
Naughter Software
Mail: pjna at naughter.com
Web: www.naughter.com
Hotmail/MSN Messenger: pjnaughter at hotmail.com
It is finally on the shelves... the book from Joseph Gama and I:
http://www.amazon.com/Super-SQL-Serv.../dp/0976157322
- Posted by Radamanthe on February 2nd, 2007
PJ Naughter wrote:
Thanks, I'll check that. I certainly won't use it because of MFC, but
it will be of great help !
--
R.N.
- Posted by matevzb on February 2nd, 2007
On Feb 2, 9:48 pm, Radamanthe <tek...@free.deleteme.fr> wrote:
ms685942.aspx.
Generally, any Windows specific search is best tried at http://
msdn.microsoft.com, especially those with common words.
--
WYCIWYG - what you C is what you get
- Posted by Radamanthe on February 2nd, 2007
matevzb wrote:
I did, but typing "services" in MSDN was not much help either
But
"CreateService" was pretty more handy to reach the right subject without
browsing tons of pages (I'm in Europe and Microsoft's site tends to be
slow). By the way, is it possible to download those documents for local
browsing ?
Thank you anyway for pointing this out.
Thanks, I'm happy to hear that.
--
R.N.
- Posted by matevzb on February 2nd, 2007
On Feb 2, 11:30 pm, Radamanthe <tek...@free.deleteme.fr> wrote:
includes MSDN Express. I think it contains _some_ of the
documentation, unfortunately it's been more focused on .NET lately.
You can find the download at http://msdn.microsoft.com/vstudio/express/
support/install.
I'm also in Europe but I'm not sure whether the slowness come from
(just) that, it's probably generic =)
--
WYCIWYG - what you C is what you get
- Posted by xbunny on February 2nd, 2007
Radamanthe wrote:
Download the platform SDK and look at the sample in
psdk\samples\winbase\service its written in C and should compile with
mingw, possibly the current psdk may not be compatable with mingw
however the sample uses no overly modern API's so I expect the windows
headers with mingw would be fine. The sample can easily be reused as all
you need to compile in service.c and implement ServiceStart and
ServiceStop in your application.
Bunny