Re: Sharing a COM object in a MMF

From: Tim Robinson (tim.at.gaat.freeserve.co.uk_at_invalid.com)
Date: 02/29/04


Date: Sun, 29 Feb 2004 11:41:57 -0000

I'm not sure the DirectX interfaces will work cross-process -- there's a lot
of stuff in there (e.g. calls which lock surfaces or buffers) which are
impossible to marshal.

I would recommend putting together a custom COM interface in a
out-of-process server which exposed the required functionality, then hiding
the DirectX stuff deep down inside that.

-- 
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/
"Ben Ashley" <no@bloody.way> wrote in message
news:%23o5IQhq$DHA.1036@TK2MSFTNGP10.phx.gbl...
> Ok well if I was going down this road, I'd make the EXE and out of process
> server (create it with the ATL Wizard (EXE)), and have that create and
> initialise the D3D Device.  I'd then create another COM object which is
> creatable by other processes.  One of the properties of this would be a
> property that returned the D3D Device interface.  Other processes can then
> create an instance of this object, and obtain the interface.
>
> I'm not sure how well it would work, but if it has cross-process issues
you
> could make the object above more complex and simply forward calls to the
D3D
> Device.
>
> Watch out for multi-threading issues!
>
> "Steven" <anonymous@discussions.microsoft.com> wrote in message
> news:0E90E257-9BF2-4127-BF85-11803AA79CC0@microsoft.com...
> > Ok.
> >
> > I am trying to inject a D3D device into a existing process and then give
> other processes access to this Device through the shared dll (that injects
> the Device).
> >
> > I am sure that their are other complications and issues to deal with
(when
> injecting a Device), however, this is needed for demonstration purposes,
and
> I am only interested in achieving the above technical aspect at this
point.
> >
> > I hope this explains what I am trying to do.
> >
> > Thanks,
> >
> > Steven
>
>


Relevant Pages

  • Re: Sharing a COM object in a MMF
    ... I'm not sure the DirectX interfaces will work cross-process -- there's a lot ... > property that returned the D3D Device interface. ... >> I am trying to inject a D3D device into a existing process and then give ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Detecting process death for anycast named process monitoring
    ... process detect that process unexpectedly dying? ... we want to shut down the interface ... which causes Quagga to inject the anycast route. ...
    (Linux-Kernel)
  • Re: Detecting process death for anycast named process monitoring
    ... process detect that process unexpectedly dying? ... we want to shut down the interface ... which causes Quagga to inject the anycast route. ...
    (Linux-Kernel)
  • Re: Russound A-BUS
    ... Is it not possible to inject zoned ir into each keypad back at the ... I designed a little circuit which a guy in the UK is using to inject ir ... Heres a link to my interface which i use to interface to my cbus ir ... Frank Mc Alinden ...
    (comp.home.automation)