Guest jimr Posted October 1, 2008 Posted October 1, 2008 Does anyone know how to get the application instance of a COM object from a ProcessID using .NET 2.0 or greater? My goal is to call a function in a COM object running in a session. TIA.
Guest jimr Posted October 1, 2008 Posted October 1, 2008 Re: Get application instance of COM object from ProcessID On Oct 1, 1:03 pm, jimr <jre...@gmail.com> wrote: > Does anyone know how to get the application instance of a COM object > from a ProcessID using .NET 2.0 or greater? > > My goal is to call a function in a COM object running in a session. > > TIA. I am trying to accomplish this by invoking the COM object in a session from a service. Thanks.
Guest ThomasT. Posted October 1, 2008 Posted October 1, 2008 Re: Get application instance of COM object from ProcessID Hi, I think you have to use Session Moniker, but there is a very little documentation about that, that's not an easy way. Regards Thomas "jimr" <jreisz@gmail.com> wrote in message news:f559a376-f049-4711-a146-9d21864533a5@m74g2000hsh.googlegroups.com... On Oct 1, 1:03 pm, jimr <jre...@gmail.com> wrote: > Does anyone know how to get the application instance of a COM object > from a ProcessID using .NET 2.0 or greater? > > My goal is to call a function in a COM object running in a session. > > TIA. I am trying to accomplish this by invoking the COM object in a session from a service. Thanks.
Guest jimr Posted October 2, 2008 Posted October 2, 2008 Re: Get application instance of COM object from ProcessID Hi Thomas, Thanks for your help on pointing me in the right direction. Microsoft has a document on using Session Monikers (http://msdn.microsoft.com/en- us/library/aa383539(VS.85).aspx) that they published last week that I will follow. Regards, Jim On Oct 1, 1:47 pm, "ThomasT." <Thom...@nospam.nospam> wrote: > Hi, > > I think you have to use Session Moniker, but there is a very little > documentation about that, that's not an easy way. > > Regards > > Thomas > > "jimr" <jre...@gmail.com> wrote in message > > news:f559a376-f049-4711-a146-9d21864533a5@m74g2000hsh.googlegroups.com... > On Oct 1, 1:03 pm, jimr <jre...@gmail.com> wrote: > > > Does anyone know how to get the application instance of a COM object > > from a ProcessID using .NET 2.0 or greater? > > > My goal is to call a function in a COM object running in a session. > > > TIA. > > I am trying to accomplish this by invoking the COM object in a session > from a service. > > Thanks.
Guest ThomasT. Posted October 2, 2008 Posted October 2, 2008 Re: Get application instance of COM object from ProcessID That article was there long time ago, I have read it but I never try because I didn't have any need. Please give the feedback if it works for you or not, on the Net I can not find more information about Session Moniker. Be careful with that kind of solution, if M$ changes a little bit on the security or in the internal of Terminal Services it will not work any more. It seems that nobody uses that way :-) Regards Thomas T. http://www.mqtechnologies.com/ "jimr" <jreisz@gmail.com> wrote in message news:1694559b-4b09-4115-895e-41e450982d60@w32g2000hsf.googlegroups.com... Hi Thomas, Thanks for your help on pointing me in the right direction. Microsoft has a document on using Session Monikers (http://msdn.microsoft.com/en- us/library/aa383539(VS.85).aspx) that they published last week that I will follow. Regards, Jim On Oct 1, 1:47 pm, "ThomasT." <Thom...@nospam.nospam> wrote: > Hi, > > I think you have to use Session Moniker, but there is a very little > documentation about that, that's not an easy way. > > Regards > > Thomas > > "jimr" <jre...@gmail.com> wrote in message > > news:f559a376-f049-4711-a146-9d21864533a5@m74g2000hsh.googlegroups.com... > On Oct 1, 1:03 pm, jimr <jre...@gmail.com> wrote: > > > Does anyone know how to get the application instance of a COM object > > from a ProcessID using .NET 2.0 or greater? > > > My goal is to call a function in a COM object running in a session. > > > TIA. > > I am trying to accomplish this by invoking the COM object in a session > from a service. > > Thanks.
Guest jimr Posted October 3, 2008 Posted October 3, 2008 Re: Get application instance of COM object from ProcessID I couldn't get the example to work so I cut bait and wrote a small application that is opened by the service within the appropriate session that calls the com server methods. Although I couldn't get session monikers to work I do appreciate your help. Have a good one. On Oct 2, 11:21 am, "ThomasT." <Thom...@nospam.nospam> wrote: > That article was there long time ago, I have read it but I never try because > I didn't have any need. > Please give the feedback if it works for you or not, on the Net I can not > find more information about > Session Moniker. Be careful with that kind of solution, if M$ changes a > little bit on the security or > in the internal of Terminal Services it will not work any more. It seems > that nobody uses that way :-) > > Regards > > Thomas T.http://www.mqtechnologies.com/ > > "jimr" <jre...@gmail.com> wrote in message > > news:1694559b-4b09-4115-895e-41e450982d60@w32g2000hsf.googlegroups.com... > Hi Thomas, > > Thanks for your help on pointing me in the right direction. Microsoft > has a document on using Session Monikers (http://msdn.microsoft.com/en- > us/library/aa383539(VS.85).aspx) that they published last week that I > will follow. > > Regards, > Jim > > On Oct 1, 1:47 pm, "ThomasT." <Thom...@nospam.nospam> wrote: > > > > > Hi, > > > I think you have to use Session Moniker, but there is a very little > > documentation about that, that's not an easy way. > > > Regards > > > Thomas > > > "jimr" <jre...@gmail.com> wrote in message > > >news:f559a376-f049-4711-a146-9d21864533a5@m74g2000hsh.googlegroups.com.... > > On Oct 1, 1:03 pm, jimr <jre...@gmail.com> wrote: > > > > Does anyone know how to get the application instance of a COM object > > > from a ProcessID using .NET 2.0 or greater? > > > > My goal is to call a function in a COM object running in a session. > > > > TIA. > > > I am trying to accomplish this by invoking the COM object in a session > > from a service. > > > Thanks.- Hide quoted text - > > - Show quoted text -
Recommended Posts