"spujia" <> wrote:
>
>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?
"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,
Providenza & Boekelheide, Inc.