The testcap thing works out of the box simulating a tv tuner, but
theres an awful lot of code in there and it looks forbiddingly
difficult to modify.
The avssamp and avshws seem more manageable , but they register
themselves as "WDM streaming Video Capture" devices and are not
recognized by any app as a capture device, though they work fine in
Graphedit.
Now I have some questions :
1) Can I make the avssamp filter get registered as a normal capture
device?
2) How do i see the output of the DbgPrint and KdPrint functions ?
3) Would it be more simple to write a VFW driver instead?( I read
somewhere that they can be simple user mode DLLs exporting a function
called DriverProc() ) If so where can I get more info on this?(Google
seems to be silent on this one)
Any suggestions are welcome.
Thanks in advance
Vivek
VFW capture driver might be your best bet as some people advocate.
Personally I don't like it, but many find it much easier to write as opposed
to doing kernel mode work. See Win95 DDK.
Output of DbgPrint or KdPrint can be captured with DbgView (Google it)
however you will have to get familiar with WinDbg if you are to do any
kernel mode debugging and WinDbg captures the output of those routines as
well.
Read WinDbg help on how to set up and use the debugger.
Overall you are up for a lot of reading in the DDK about what KS is and how
to write a Stream Class or AVStream minidriver.
Then arm yourself with the debugger and step through the code of existing
sample TestCap would be my choice and see what it does and how it works.
After that you should be able to customize it for your needs.
-- Max.
"rep_movsd" <rep....@gmail.com> wrote in message
news:1136360649....@g47g2000cwa.googlegroups.com...
Your two applications will have access to the same instance of the device
object. If you create another instance of the filter in some other
application, the underlying device object will still be the same.
However I'd argue whether or not you are using the best approach. The
easiest way to do this in WDM world is to submit a bunch of IRPs with the
data from your application #2. In the driver you then pend them, queue them
and complete when you no longer need them.
In KS universe it may not be that easy as you don't open files the way you
would usually do it in WDM.
You normally create an instance of DirectShow filter and access the device
through it. So it is certainly possible to define a custom property set and
then feed your driver with the data through it.
-- Max.
"rep_movsd" <rep....@gmail.com> wrote in message
news:1137591786....@o13g2000cwo.googlegroups.com...
-- Max.
"rep_movsd" <rep....@gmail.com> wrote in message
news:1137742947.3...@g47g2000cwa.googlegroups.com...