Article View: borland.public.cppbuilder.nativeapi
Article #4472Re: DCOM & NT services
From: Remy Lebeau (TeamB)
Date: Mon, 30 Jan 2006 07:23
Date: Mon, 30 Jan 2006 07:23
40 lines
2361 bytes
2361 bytes
"david johnson" <davidjohnson@gmail.com> wrote in message
news:43dbb7d8@newsgroups.borland.com...
> When a run a client, it instanciates the server and the server is loaded
> up on the "server" machine. What I want to know is, what happens if
> no one is logged on to the windows machine i.e. it is just sitting at the
> login screen.
That depends - is the DCOM server implemented in a standalone application,
or as an actual service?
> Will the server app still start? If so, what then happens when someone
> logons on - will they see the server GUI on there desktop?
If you implement the server as a true service, then everything will work
fine as expected - the server can be started even if no user is logged in,
and the service will continue to run when a user does eventually log in.
> I'm not sure what sure what the results are...
Did you actually try it as see what really happens?
> I need to server to run regardless of if a user is logged on to the server
PC
Then you must implement the server as a service.
> Is it possible to wrap DCOM into an NT service?
Yes. Microsoft even provides extra support in the OS for that specific
condition, in the form of additional Registry values that you need to set up
during the service's installation. Read the following article for more
details:
Creating and Registering COM Components with LocalService
http://msdn.microsoft.com/library/en-us/dncomg/html/localserv.asp
Gambit
Technical Details
Message-ID:
<43ddbfd6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43dbb7d8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,941a73962d88558e X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43dbb7d8@newsgroups.borland.com> Subject: Re: DCOM & NT services Date: Sun, 29 Jan 2006 23:23:26 -0800 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43ddbfd6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138606038 68.69.17.41 (29 Jan 2006 23:27:18 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail