ATL/COM out-of-process EXE and DCOM 
Author Message
 ATL/COM out-of-process EXE and DCOM

I just created an out-of-process executable server to be run on the same
machine as the client.  But when I try to access it using a different user
account, I was denied access.  I had to go to DCOMCNFG.EXE and configure
access to this server.  But I wasn't intending it to be a DCOM server to
begin with, just an out-of-process local server.
Are all out-of-process executables automatically DCOM servers that require
configuration through DCOMCNFG?  Or can I create an out-of-process COM
server that doesn't have to be configured as a DCOM object and can therefore
be accessed by everyone?

Any help is really appreciated.

Alfredo Diaz
(Remove the NOSPAM from email address to reply by email)



Sun, 27 Oct 2002 03:00:00 GMT  
 ATL/COM out-of-process EXE and DCOM
Hi,
  Since the security context is changing in this case you will ahve to
provide access permissions so that the client can create this object and
invoke methods. So even if it is the same machine the security context is
different.
There are two ways you can alter the security and authentication settings
:-
1) use dcomcnfg
2) the server can programmatically set the security(CoInitializeSecurity)
and authentication level to none for just that process and then all clients
can call into
    this server without  changing the security using dcomcnfg.

Hope that helps.

Regards
-parmar
Microsoft Developer Support
--------------------

| Subject: ATL/COM out-of-process EXE and DCOM
| Date: Wed, 10 May 2000 15:26:09 -0400
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
| X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

| Newsgroups: microsoft.public.vc.atl
| NNTP-Posting-Host: 166.90.192.98
| Path: cppssbbsa01.microsoft.com!cppssbbsa03
| Xref: cppssbbsa01.microsoft.com microsoft.public.vc.atl:4800
| X-Tomcat-NG: microsoft.public.vc.atl
|
| I just created an out-of-process executable server to be run on the same
| machine as the client.  But when I try to access it using a different user
| account, I was denied access.  I had to go to DCOMCNFG.EXE and configure
| access to this server.  But I wasn't intending it to be a DCOM server to
| begin with, just an out-of-process local server.
| Are all out-of-process executables automatically DCOM servers that require
| configuration through DCOMCNFG?  Or can I create an out-of-process COM
| server that doesn't have to be configured as a DCOM object and can
therefore
| be accessed by everyone?
|
| Any help is really appreciated.
|
| Alfredo Diaz
| (Remove the NOSPAM from email address to reply by email)
|
|
|



Sun, 27 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ATL COM EXE Multiple Processes

2. ATL COM - Passing ATL COM classes through another ATL COM class in the same app

3. DCOM: surrogate process dllhost.exe remains running even after a release instance

4. DCOM - Retrieving Client information in ATL ActiveX Exe(Server)

5. DCOM trouble with ATL EXE server, VB ActiveX client

6. a dcom problem with an ATL Exe Server

7. DCOM out-of-process objects and ATL library ?

8. Help Beginer Question - How to create an COM/DCOM Out-of-process on PocketPC

9. Problem with ATL/COM and DCOM!

10. Want an introduction to COM/DCOM/ATL/ActiveX

 

 
Powered by phpBB® Forum Software