I am using the WDK mirror driver sample as a base. The driver is attached
to the desktop. My goal is to intercept basic graphics functions through
the use of the mirror driver and access them in a user-mode application. Is
there a way to directly hook the GDI functions that are implemented in the
driver (DrvTextOut , DrvBitBlit, etc) from my user-mode application? I
have seen a couple examples of other ways to communicate beween driver and
user-mode apps, one that uses shared memory and one that uses io and is
implemented as a simple comm driver
(DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL], etc). I tried to
splice the comm driver stuff into the video driver, but was unable to do so
because I could not include miniport.h and Ntddk.h in the same file. OK, I
quess I have two questions....
Any help is much appreciated.
Best regards,
Steve
"Hook" for what purpose? I don't really think that's what you meant.
>I have seen a couple examples of other ways to communicate beween driver and
>user-mode apps, one that uses shared memory and one that uses io and is
>implemented as a simple comm driver
>(DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL], etc). I tried to
>splice the comm driver stuff into the video driver, but was unable to do so
>because I could not include miniport.h and Ntddk.h in the same file. OK, I
>quess I have two questions....
Display drivers use a very different scheme -- they aren't WDM at all. You
can use the ExtEscape function to send arbitrary requests to the display
driver.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
I can't sure that it is okay or not in Vista, I have been write a drver to
direct hook the Drv... Function of the real display driver in several years
ago, It is working correct in XPDM(only test it in Win2K/WinXP),
I think you should hook dxg... module in WDDM.
B.R.
AllenZhang
Thanks for the responses. Are you implying that I should write my own
filter driver? More importantly, how did you hook the Drv... functions in
the real driver? If I could do that, I would not need the mirror driver.
Please clarify "I think you should hook dxg... module in WDDM".
Thanks!
"allenzhang" <allen...@discussions.microsoft.com> wrote in message
news:C655AD6A-C147-4640...@microsoft.com...
I have an mistake about your question, I understand that you want to
implement it in WDDM and want to use DirectX accelerate when your driver is
actived.
Yes, You don't use mirror if you use display filter driver.