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/

Reply via email to