Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Sun, 13 Jan 2008 09:50:46 +0200,    group: microsoft.public.platformsdk.com_ole        back       


Configure Access to COM Server hosted in Windows Service   
I have a Windows Service created on ATL template in Visual Studio 2005.

It contains an implementation of some object model, wich is the root object 
with some properties and methods. Some of the properties are objects 
(pointers to dual interfaces) as well.

As a fisrt step I would like to configure these COM objects to be availabe 
to Administrators and System Accounts.

At the second step I would like to give administators a possibility to 
configure access and decide who has access and who does not.

What is the simpliest and most standard way to do so?

I did read in MSDN on the subject and I know about dcomcnfg and I am not new 
to the subject but I will appreciate any help.

Thanks in advance.
date: Sun, 13 Jan 2008 09:50:46 +0200   author:   Max please@newsgroup

Re: Configure Access to COM Server hosted in Windows Service   
Using DCOMCNFG, hit the Security tab, and set the Access Permissions accordingly.

Is there a something problem you are having?

Brian


"Max" <please@newsgroup> wrote in message news:uI1TyjbVIHA.4476@TK2MSFTNGP06.phx.gbl...
>I have a Windows Service created on ATL template in Visual Studio 2005.
> 
> It contains an implementation of some object model, wich is the root object 
> with some properties and methods. Some of the properties are objects 
> (pointers to dual interfaces) as well.
> 
> As a fisrt step I would like to configure these COM objects to be availabe 
> to Administrators and System Accounts.
> 
> At the second step I would like to give administators a possibility to 
> configure access and decide who has access and who does not.
> 
> What is the simpliest and most standard way to do so?
> 
> I did read in MSDN on the subject and I know about dcomcnfg and I am not new 
> to the subject but I will appreciate any help.
> 
> Thanks in advance. 
> 
>
date: Sun, 13 Jan 2008 18:18:41 -0800   author:   Brian Muth

Re: Configure Access to COM Server hosted in Windows Service   
> 
> Is there a something problem you are having?
> 

Sorry, I meant, is there a specific problem you are having?
date: Sun, 13 Jan 2008 18:27:46 -0800   author:   Brian Muth

Re: Configure Access to COM Server hosted in Windows Service   
Currently I have "The system can not find the file specified" error when I 
try to use my COM server.
It happens only when it is registered as a service.

I am looking for a short and comprehensive guide or document that explains 
security related aspects of DCOM. Poth programming and configuration.

"Brian Muth"  wrote in message 
news:ObHB7PlVIHA.3452@TK2MSFTNGP03.phx.gbl...
> Using DCOMCNFG, hit the Security tab, and set the Access Permissions 
> accordingly.
>
> Is there a something problem you are having?
>
> Brian
>
>
> "Max" <please@newsgroup> wrote in message 
> news:uI1TyjbVIHA.4476@TK2MSFTNGP06.phx.gbl...
>>I have a Windows Service created on ATL template in Visual Studio 2005.
>>
>> It contains an implementation of some object model, wich is the root 
>> object with some properties and methods. Some of the properties are 
>> objects (pointers to dual interfaces) as well.
>>
>> As a fisrt step I would like to configure these COM objects to be 
>> availabe to Administrators and System Accounts.
>>
>> At the second step I would like to give administators a possibility to 
>> configure access and decide who has access and who does not.
>>
>> What is the simpliest and most standard way to do so?
>>
>> I did read in MSDN on the subject and I know about dcomcnfg and I am not 
>> new to the subject but I will appreciate any help.
>>
>> Thanks in advance.
date: Mon, 14 Jan 2008 13:14:31 +0200   author:   Max please@newsgroup

Re: Configure Access to COM Server hosted in Windows Service   
> Currently I have "The system can not find the file specified" error when I 
> try to use my COM server.

I don't follow. How are you trying to "use" your COM server? Instantiate an object? 


> 
> I am looking for a short and comprehensive guide or document that explains 
> security related aspects of DCOM. Poth programming and configuration.

For online material, your best starting point is here:

http://msdn2.microsoft.com/en-us/library/ms693319(VS.85).aspx

Brian
date: Mon, 14 Jan 2008 08:59:14 -0800   author:   Brian Muth

Re: Configure Access to COM Server hosted in Windows Service   
CoGetClassObject.

Thanks for the link.

"Brian Muth"  wrote in message 
news:%23tcKA8sVIHA.4808@TK2MSFTNGP05.phx.gbl...
>> Currently I have "The system can not find the file specified" error when 
>> I try to use my COM server.
>
> I don't follow. How are you trying to "use" your COM server? Instantiate 
> an object?
>
>>
>> I am looking for a short and comprehensive guide or document that 
>> explains security related aspects of DCOM. Poth programming and 
>> configuration.
>
> For online material, your best starting point is here:
>
> http://msdn2.microsoft.com/en-us/library/ms693319(VS.85).aspx
>
> Brian
>
date: Tue, 15 Jan 2008 09:29:24 +0200   author:   Max please@newsgroup

Re: Configure Access to COM Server hosted in Windows Service   
> CoGetClassObject.
> 

This returns an HRESULT. Do you recall it's value?
date: Tue, 15 Jan 2008 08:55:53 -0800   author:   Brian Muth

Re: Configure Access to COM Server hosted in Windows Service   
Brian,

Thank you for help.
I believe I have figured out the source of my troubles.
To say it shortly, it is proxy-stub dlls.

When you create an ATL project there is an option to merge proxy stub code 
which is, if I am not mistakign, not checked by default and a proxy stub dll 
is created. I did not register it and did not make any use of it, thus there 
was no marshaling available.

I have more things to check and I am in process of simplifying  my code. It 
was overcomplicated with no reason in some places and more complicate than I 
was explaining in my question.


"Brian Muth"  wrote in message 
news:%23CMA3e5VIHA.4532@TK2MSFTNGP02.phx.gbl...
>> CoGetClassObject.
>>
>
> This returns an HRESULT. Do you recall it's value?
>
>
date: Thu, 17 Jan 2008 15:59:29 +0200   author:   Max please@newsgroup

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us