From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen)
Subject: Re: NT Service, WinSock
Date: 26 Oct 2000 13:52:08 -0500
Date: 2000-10-26T13:52:08-05:00 [thread overview]
Message-ID: <b3biDqXPSlUf@eisner.decus.org> (raw)
In-Reply-To: 8t9lbu$ml1$1@nnrp1.deja.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1433 bytes --]
In article <8t9lbu$ml1$1@nnrp1.deja.com>, Ted Dennison <dennison@telepath.com> writes:
> In article <8t8u9l$4ru$1@zingo.tninet.se>,
> "Peter Hend�n" <phenden@tdab.com> wrote:
>> I am doing an overhaul of a Windows NT service. It is
>> currently done in C++. I now have a (very tight) time
>> window to convince the powers that be to let me rewrite
>> this in Ada (I did the original C++ implementation). What
>> I would like some help with is how to implement an NT
>> service (the service module handler stuff) - sample/boilerplate
>
> Hmmm. There's a nice little discussion of that on the MDSN disk that
> should have come with your C++ compiler: "Design a Windows NT Serice..."
> in Periodicals 1997. It looks pretty simple. You just need to create a
> ServiceMain and Handler routine (with the proper parameter profiles of
> course) for each service in your program. If your executable is listed
> in the registry as containing a service, the OS calls your main
> procedure at startup to perform initialization. As part of that
> initialization your main procedure builds a LPSERVICE_TABLE_ENTRY array
> containing the name and ServiceMain address for each service in the
> executable. You then pass that to StartServiceCtrlDispatcher (You have
> to do this within 2 minutes, or the OS will kill your process).
Wasn't this the area with a problem letting the Ada RTL know about
threads created by the Microsoft OS code ?
next prev parent reply other threads:[~2000-10-26 18:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-26 0:00 NT Service, WinSock Peter Hend�n
2000-10-26 16:16 ` Ted Dennison
2000-10-26 18:52 ` Larry Kilgallen [this message]
2000-10-27 1:45 ` Ted Dennison
2000-10-30 15:50 ` Ted Dennison
2000-10-31 1:21 ` Randy Brukardt
2000-10-31 3:27 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox