Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

WCF service impersonating a COM component

 
 
Thread Tools Display Modes
Old 04-19-2007   #1 (permalink)
carl_bevil@yahoo.com
Guest


 

WCF service impersonating a COM component

Hi all. I am working on a project where I need to add a new component
to a system of COM/DCOM server components. Actually, I need to
replace one of the components. I was hoping I could replace it with a
WCF component. The key is that the other components' source code
cannot be changed. So these components would be calling
CoCreateInstance and the like, using the relevant CLSID and IID of the
COM component. Is it possible to implement things such that this will
transparently create/access a WCF service, and have this service
behave just like a COM component, so the other components are none the
wiser?

I looked around on the web and in some books but didn't see any
obvious way to do this. I'm hoping I just missed something. Does
anyone know if what I want to do is possible?

Thanks!

Carl

Old 04-20-2007   #2 (permalink)
Dwight@QuickLearn
Guest


 

RE: WCF service impersonating a COM component

In theory, You should be able to do this.

You would have to create a CCW (Com Callable Wrapper for .NET) and then use
this wrapper to call into the WCF Service.

You can control the CLSID's and IID's using the COM Attribute settings of
the CCW.

HTH
-Dwightg@quicklearn.com

"carl_bevil@yahoo.com" wrote:

> Hi all. I am working on a project where I need to add a new component
> to a system of COM/DCOM server components. Actually, I need to
> replace one of the components. I was hoping I could replace it with a
> WCF component. The key is that the other components' source code
> cannot be changed. So these components would be calling
> CoCreateInstance and the like, using the relevant CLSID and IID of the
> COM component. Is it possible to implement things such that this will
> transparently create/access a WCF service, and have this service
> behave just like a COM component, so the other components are none the
> wiser?
>
> I looked around on the web and in some books but didn't see any
> obvious way to do this. I'm hoping I just missed something. Does
> anyone know if what I want to do is possible?
>
> Thanks!
>
> Carl
>
>

Old 04-22-2007   #3 (permalink)
carl_bevil@yahoo.com
Guest


 

Re: WCF service impersonating a COM component

I'll look into that, thanks!

Carl

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveXPowerShell component Primalscript VB Script 0 06-26-2008 02:19 AM
ActiveX component vistauser Vista General 2 05-01-2008 07:31 AM
Access denied while impersonating luke.quinane PowerShell 1 04-12-2008 01:25 PM
Get-WMIObject is not impersonating correctly for some classes Bob Landau PowerShell 2 09-13-2007 09:02 PM
Videos Folder Impersonating Documents Folder Valek Hawke Vista General 0 05-08-2007 10:06 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50