Windows Vista Forums

WCF service impersonating a COM component

  1. #1


    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

      My System SpecsSystem Spec

  2. #2


    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
    >
    >

      My System SpecsSystem Spec

  3. #3


    carl_bevil@yahoo.com Guest

    Re: WCF service impersonating a COM component

    I'll look into that, thanks!

    Carl

      My System SpecsSystem Spec

WCF service impersonating a COM component

Similar Threads
Thread Forum
Chain Mail and impersonating MSN Staff!
Hello, I am getting annoyed with getting spam mail that has has been forwarded by my contacts has has people impersonation MSN staff members. The...
Live Mail
How deactivate-reactivate a hardware component and start a service by script / command-line ?
Hi, have my USB Wireless dongle constatntly dropping ( although drivers ok and up-to-date, constantly awake etc) Have to deactivate it,...
VB Script
Impersonating user via vbscript?
thank you for reading. is it even possible to impersonate a user on the domain (as you can in .net) using vbscript? the aim is to retrieve the...
VB Script
ActiveXPowerShell component
The ActiveXPoSH COM component released with PrimalScript 2007 Service build 566 is now available as a free download from SAPIEN.com For more...
VB Script
Access denied while impersonating
Hi All, I'm trying to wrap Powershell in C# for a SSH server implementation but I am getting the following message: Windows PowerShell...
PowerShell
Get-WMIObject is not impersonating correctly for some classes
I've been looking at what WMI is capable of doing the past few days specifically in regards to computer maintenance. In this test in my lab...
PowerShell
Videos Folder Impersonating Documents Folder
Boy, How do I explain this so that you all understand what actually happened since I really don't KNOW WHAT happened. Well, I'll give it my best...
Vista General