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.
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. > >
> > Is there a something problem you are having? > Sorry, I meant, is there a specific problem you are having?
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.
> 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
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 >
> CoGetClassObject. > This returns an HRESULT. Do you recall it's value?
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? > >