How does windows pass data to drivers?

This is a discussion on How does windows pass data to drivers? within the Windows Programming forums, part of the Platform Specific Boards category; Hi all!
Does anyone know how (and/or where I can find more information) on how windows passes data to drivers?
...

How does windows pass data to drivers?

Hi all!

Does anyone know how (and/or where I can find more information) on how windows passes data to drivers?

What I'd like to do is put a hook between windows and my audio driver. Basically it'd go OS -> my program -> audio driver... My program would then perform two functions: 1) write the data from the OS to the hard drive and 2) pass the data to the audio driver.

(Yes, I realize there are commercial implementations of audio capture; however, none can capture directly from the soundcard on my Inspiron 9400)