Does anyone have any ideas about how I can
Send a IOCTL message from one driver to another video driver.
I only have access to the code from the sending driver.

Thanks in advance,
Anders

Re: Inter-Driver Communication by Boris

Boris
Wed Mar 16 08:26:38 CST 2005

You mean from one video driver to another? The only way I could think of,
was a user-mode process (service) relaying it. Have the service create an
event and pass a handle to the first driver, who will map it with
EngMapEvent, and then use EngSetEvent to alert the service that it's time to
send the message. Won't be synchronous though...

I tried to do something similar, but couldn't come up with a way to map the
handle of the target driver into the calling driver's address space. So I
ended up with a user-mode component - a bit slow, but works.

If you meant "from a kernel-mode driver to a video driver" - then I don't
know.

"Anders" <Anders Sipuri@discussions.microsoft.com> wrote in message
news:B29E4C77-2AAF-4BBF-8199-22D4A8835EFA@microsoft.com...
> Does anyone have any ideas about how I can
> Send a IOCTL message from one driver to another video driver.
> I only have access to the code from the sending driver.
>
> Thanks in advance,
> Anders
>



Re: Inter-Driver Communication by AndersSipuri

AndersSipuri
Wed Mar 16 08:51:05 CST 2005

Yes, it is between two video drivers.
I want to send a IOCTL_VIDEO_MAP_VIDEO_MEMORY request to the other
Driver, Can I use ExtExcape or EngDeviceIoContorl to the other driver ?
How do I get a handle to the other driver ?
/Anders

"Boris Glick" wrote:

> You mean from one video driver to another? The only way I could think of,
> was a user-mode process (service) relaying it. Have the service create an
> event and pass a handle to the first driver, who will map it with
> EngMapEvent, and then use EngSetEvent to alert the service that it's time to
> send the message. Won't be synchronous though...
>
> I tried to do something similar, but couldn't come up with a way to map the
> handle of the target driver into the calling driver's address space. So I
> ended up with a user-mode component - a bit slow, but works.
>
> If you meant "from a kernel-mode driver to a video driver" - then I don't
> know.
>
> "Anders" <Anders Sipuri@discussions.microsoft.com> wrote in message
> news:B29E4C77-2AAF-4BBF-8199-22D4A8835EFA@microsoft.com...
> > Does anyone have any ideas about how I can
> > Send a IOCTL message from one driver to another video driver.
> > I only have access to the code from the sending driver.
> >
> > Thanks in advance,
> > Anders
> >
>
>
>

Re: Inter-Driver Communication by Calvin

Calvin
Wed Mar 16 09:42:26 CST 2005

"Anders Sipuri" <AndersSipuri@discussions.microsoft.com> wrote in message
news:585C0EE4-AB38-46C8-9FDF-8440F04731D0@microsoft.com...
> Yes, it is between two video drivers.
> I want to send a IOCTL_VIDEO_MAP_VIDEO_MEMORY request to the other
> Driver, Can I use ExtExcape or EngDeviceIoContorl to the other driver ?
> How do I get a handle to the other driver ?
> /Anders
>

For the display driver? No you can't.
--
Calvin Guan Software Engineer/Radeon NT Drivers
ATI Technologies Inc. Markham ON, Canada www.ati.com





Re: Inter-Driver Communication by AndersSipuri

AndersSipuri
Mon Mar 21 13:45:03 CST 2005

How do i do then ?

"Calvin Guan" wrote:

> "Anders Sipuri" <AndersSipuri@discussions.microsoft.com> wrote in message
> news:585C0EE4-AB38-46C8-9FDF-8440F04731D0@microsoft.com...
> > Yes, it is between two video drivers.
> > I want to send a IOCTL_VIDEO_MAP_VIDEO_MEMORY request to the other
> > Driver, Can I use ExtExcape or EngDeviceIoContorl to the other driver ?
> > How do I get a handle to the other driver ?
> > /Anders
> >
>
> For the display driver? No you can't.
> --
> Calvin Guan Software Engineer/Radeon NT Drivers
> ATI Technologies Inc. Markham ON, Canada www.ati.com
>
>
>
>
>

Re: Inter-Driver Communication by Tim

Tim
Mon Mar 21 22:11:15 CST 2005

"Anders Sipuri" <AndersSipuri@discussions.microsoft.com> wrote:
>
>How do i do then ?

Well, you'll have to get creative. If all you want is the address of the
primary screen's primary surface, you could write a user-mode helper app
that uses DirectDraw to get the address.

If you control both drivers, you can tuck pieces of information in the
registry.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc

Re: Inter-Driver Communication by AndersSipuri

AndersSipuri
Thu Apr 07 06:41:02 CDT 2005

The problem is that the driver does not support DirectDraw !!
Is there any other solutions ???
/Anders

"Tim Roberts" wrote:

> "Anders Sipuri" <AndersSipuri@discussions.microsoft.com> wrote:
> >
> >How do i do then ?
>
> Well, you'll have to get creative. If all you want is the address of the
> primary screen's primary surface, you could write a user-mode helper app
> that uses DirectDraw to get the address.
>
> If you control both drivers, you can tuck pieces of information in the
> registry.
> --
> - Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc
>