I have written a filter driver that sits inbetween the UDF and various dvd
playback applications. In my filter I need to fail a read and get the
application to stop playback.

I am doing this by setting

Data->IoStatus.Status = STATUS_DEVICE_IO_ERROR;
Data->IoStatus.Information = 0;

WinDvd interprets it correctly and cleanly stops playback. MediaPlayer (and
some other players) start playing ugly static out of the speakers and the
time counter keeps climbing eventhough it is no longer playing video. I have
tried various other status codes but it doesn't seem to matter.

It seems like they are not checking the return status...

Any thoughts?
--
Still trying to build a perpetual motion machine

Re: UDF Filter Driver by Maxim

Maxim
Wed Mar 08 08:13:15 CST 2006

Return success and zero length (EOF) instead.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"jc" <jc@discussions.microsoft.com> wrote in message
news:CB7B6486-9D11-4733-B20A-EE9F90639220@microsoft.com...
> I have written a filter driver that sits inbetween the UDF and various dvd
> playback applications. In my filter I need to fail a read and get the
> application to stop playback.
>
> I am doing this by setting
>
> Data->IoStatus.Status = STATUS_DEVICE_IO_ERROR;
> Data->IoStatus.Information = 0;
>
> WinDvd interprets it correctly and cleanly stops playback. MediaPlayer (and
> some other players) start playing ugly static out of the speakers and the
> time counter keeps climbing eventhough it is no longer playing video. I have
> tried various other status codes but it doesn't seem to matter.
>
> It seems like they are not checking the return status...
>
> Any thoughts?
> --
> Still trying to build a perpetual motion machine


Re: UDF Filter Driver by jc

jc
Wed Mar 08 08:45:27 CST 2006

I had not tried that before but it is worse. It now causes WinDvd to play
"static" also. There is a STATUS_END_OF_FILE but this doesn't work either.

Thanks!
--
Still trying to build a perpetual motion machine


"Maxim S. Shatskih" wrote:

> Return success and zero length (EOF) instead.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "jc" <jc@discussions.microsoft.com> wrote in message
> news:CB7B6486-9D11-4733-B20A-EE9F90639220@microsoft.com...
> > I have written a filter driver that sits inbetween the UDF and various dvd
> > playback applications. In my filter I need to fail a read and get the
> > application to stop playback.
> >
> > I am doing this by setting
> >
> > Data->IoStatus.Status = STATUS_DEVICE_IO_ERROR;
> > Data->IoStatus.Information = 0;
> >
> > WinDvd interprets it correctly and cleanly stops playback. MediaPlayer (and
> > some other players) start playing ugly static out of the speakers and the
> > time counter keeps climbing eventhough it is no longer playing video. I have
> > tried various other status codes but it doesn't seem to matter.
> >
> > It seems like they are not checking the return status...
> >
> > Any thoughts?
> > --
> > Still trying to build a perpetual motion machine
>
>