Hooking video driver functions / communicating between driver and user mode application



Hello,

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

.



Relevant Pages