Lower filter driver with function driver problem

Just a short question,

I had completed a function driver by WDF , Could i add a WDM lower filter driver to this function driver ?

If i can’t ,are there any approachs to make the tool works for me ? (for example , I write a filter by myself to transfer WDFRequest to IRP???)

As you know ,some of tracing tool as “HHD USB Monitor” is adding lower filter driver on the device driver to trace the package message . somehow i try to add “USB Monitor” to watch the data flow of my driver ,it crash in sermon.sys as it is the “USB Monitor” lower filter driver in the function driver.

Yes, Of course you can

xxxxx@hotmail.com wrote:

I had completed a function driver by WDF , Could i add a WDM lower filter driver to this function driver ?

A driver is a driver. From the outside, there is no difference between
a KMDF driver, a WDM driver, a stream driver, or even a legacy driver.

If i can’t ,are there any approachs to make the tool works for me ? (for example , I write a filter by myself to transfer WDFRequest to IRP???)

WDF objects are internal to your driver only. Communication between
drivers is done by IRPs only. When the IRP arrives in your driver, WDF
wraps it up in a WDFREQUEST. When the request leaves your driver, WDF
pulls the IRP out and sends it down. The WDFREQUEST stays behind.

As you know ,some of tracing tool as “HHD USB Monitor” is adding lower filter driver on the device driver to trace the package message . somehow i try to add “USB Monitor” to watch the data flow of my driver ,it crash in sermon.sys as it is the “USB Monitor” lower filter driver in the function driver.

Does it crash without the HHD monitor? It’s possible you are formatting
your request incorrectly. The only case where I’ve actually seen the
HHD monitor interfere with normal operation was with a USB MIDI device.
Otherwise, it’s been very solid for me.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

thanks Tim.

Does it crash without the HHD monitor? It’s possible you are formatting
your request incorrectly. The only case where I’ve actually seen the
HHD monitor interfere with normal operation was with a USB MIDI device.
Otherwise, it’s been very solid for me.

I have try removed HHD software and theirs driver .and without HHD monitor my device runs well ,doesn’t crash . I will check my driver again while it just happened by accident .