David,
Ain't COM fun ...
The DCOMCNFG just changes registry settings, so when registering is the
correct time.
However - here is the catch, the application will probably have to be
installed by a user with "Adminstrator" rights, as most normal users will
not have the appropriate access to the required registry keys. Oh - the
second catch is to find the required reg keys.
You have two ways to test this - install the app as a normal user, 2 Check
what the access is on the registry keys using regedt32 (not regedit - this
does not show ACL's).
Myles.
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 July 2001 12:34 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: COM server created by a service
Hi Andrew,
Thank you, yes, switching the COM Server to run as the Interactive User when
launched by a service allows other applications to run the same COM server.
The project I'm working on doesn't have provision for me or anyone else to
change this setting on each computer it is installed. The question now is
how do I do this programmatically.
So I have an idea on where to start looking, would you think it to be done
when registering or when launching the application.
I tend to think when registering. I'll have a look around and report any
results, if anyone has any idea's I'd love to hear them.
Thanks,
David.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Andrew Little
Sent: Thursday, 12 July 2001 20:45 PM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: COM server created by a service
Hi,
You can use a windows COM util called DCOMCNFG.EXE (winnt\system32). This
allows you to specify which user account your COM application runs under.
Run DCOMCNFG.EXE, find your application in the list of registered apps,
select properties, switch to the Identity tab and go from there.
Cheers
Andrew.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of David Smith
Sent: Thursday, 12 July 2001 6:44 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: COM server created by a service
Hi Miles,
Security was my thought as well. It is running as "SYSTEM" with interaction
with desktop enabled so I was hoping this may would allow other applications
to interact with it.
Unfortunately running the Service in the context of the user logged in still
resulted in the a new COM server being started.
Do you know where I can start looking to find the interface that would allow
the COM object to run as a particular user?
Thanks,
David.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Myles Penlington
Sent: Thursday, 12 July 2001 16:24 PM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: COM server created by a service
Sounds like a security issue.
Does the service run as a particular user?
If not it probably runs as "SYSTEM" to which you as a user do not have
access when run as a application. You may get it work by running your
service as a particular user, or by granting the appropriate access rights
to the user (eg Act as part of the Operating System).
There might be some way to get your COM object to run as a particular user
no matter who tries to access it. In my trawling through the COM/MTS/COM+
interfaces I think I saw something that allows you to do this (Of course
this assumes my guess about security is right in the first place).
Myles.
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 12 July 2001 3:59 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: COM server created by a service
Hi,
I have a COM out of process server (exe) that is being created by a service
so the COM server run's all the time. The service is interactive. I have
another application that creates this COM server.
When the application creates this COM server a new instance of the COM
server is started (indicated by a new form being displayed). If this COM
server is started by a non-service application and then created within the
other application the same COM server is used.
How can I get the application to access the existing COM server that was
created by the service as it does when created by a non-service application?
Best Regards,
David Smith,
Product Architect
Fingerprint Corporation
t +61 7 3376 6688
f +61 7 3376 6702
m +61 410 46 36 46 36
e [EMAIL PROTECTED]
w www.gpsonline.com.au/fingerprint
This e-mail with its attachments is confidential and may be subject to legal
privilege. If it is not intended for you please reply immediately, destroy
it and do not copy, disclose or use it in any way.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/