From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f3b1b08549f270c0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-30 08:00:19 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: NT Service, WinSock Date: Mon, 30 Oct 2000 15:50:11 GMT Organization: Deja.com - Before you buy. Message-ID: <8tk5bf$lgh$1@nnrp1.deja.com> References: <8t8u9l$4ru$1@zingo.tninet.se> <8t9lbu$ml1$1@nnrp1.deja.com> <39F8DEBD.82CA66C4@telepath.com> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Mon Oct 30 15:50:11 2000 GMT X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) X-Http-Proxy: 1.0 x54.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:1632 Date: 2000-10-30T15:50:11+00:00 List-Id: In article <39F8DEBD.82CA66C4@telepath.com>, Ted Dennison wrote: > I've gotten interested enough in this to play with it a bit on my home > system "in my copious free time". If I come up with anything > interesting, I'll report back. I now have a nice little thick binding built for NT services that seems to be working. Its a generic that you simply instantiate with your handler routines. It takes care of all the details of registering the service and its handlers with NT. It appears to work nicely. The only real glitch I've seen is that some test code of mine, in trying to write to a file in a handler, causes an exception to get raised (and handled) in the ServiceMain routine, which should be in a completely different thread! Other than that, with Gnat Text_IO to files works fine. "delay" works fine. I haven't tried any other tasking or protected type primitives yet. I'm having trouble creating processes with CreateProcess, but that's probably an unrelated bug. Right now I'm using this as part of a mini-project to create a SETI@Home controller service (something I've wanted for a while), which I plan to release as free software if I can get it working well enough. If anyone is interested in the NT service binding itself, let me know. Would someone familiar with CLAW care to comment on how/if it handles NT services? I'm interested in what other thick bindings have done. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.