Max
Tue Jun 01 03:10:43 CDT 2004
Don't know anything about MSDV.
Usually (emphasis on _usually_) drivers call StreamClassRegisterXXX or
AVStream flavor of it and that's the point where KS
takes over.
My own experience is based on PCI and all sorts of virtual devices (ROOT or
SWENUM based).
In the context of OP question, this makes no difference. The fact is that
his driver does not own the PDO, so doing DeviceIoControl out of the blue
won't work. The block of data passed between his driver entry point and the
user land has to conform to standards setup by KS. The right way to go is to
use the API provided by KS Proxy.
Doing raw DeviceIoControl is still possible, of course. It is just that
parameters must be in certain form for it to work.
-- Max.
"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:ecBsEouREHA.3140@tk2msftngp13.phx.gbl...
> Really?
>
> For instance, the PDO for MSDV camera (with old MSDV stack from w2k)
was
> owned by 1394bus. And MSDV.SYS was a stream class minidriver.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
>
http://www.storagecraft.com
>
>
> "Max Paklin" <mpaklin@hotmail.com> wrote in message
> news:eVGfnKuREHA.2404@TK2MSFTNGP09.phx.gbl...
> > PDO for KS based minidriver is owned by the class driver (ks.sys).
> > This means that you can't send anything to your driver directly, it will
all
> > go through KS (unless you bother to hook dispatch table in PDO or you
create
> > an extra PDO and make it a target for your IOCTL).
> >
> > Still nothing stops you from creating a custom property set and sending
> > IOCTLs to your driver using IKsControl, IKsPropertySet or plain
> > KsSynchronousDeviceControl.
> >
> > -- Max.
> >
> >
> >
> > "Alexander" <fastbrain@hotbox.ru> wrote in message
> > news:Ot41OMtREHA.3452@TK2MSFTNGP10.phx.gbl...
> > > I want to send IRP_MJ_DEVICEIOCONTROL to the stream driver from kernel
> > mode.
> > > Is there function similar to DeviceIOControl or I have to send IRP to
> > driver
> > > directrly?
> > >
> > >
> > >
> >
> >
>
>