[MPlayer-dev-eng] [PATCH] VCD support for Windows (except Win9x)

Zuxy Meng zuxy.meng at gmail.com
Sun Mar 11 17:43:27 CET 2007


Hi,

2007/3/12, Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
> Hello,
> On Sat, Mar 10, 2007 at 07:59:13PM +0800, Zuxy Meng wrote:
> > +    hd = (HANDLE)_get_osfhandle(fd);
> > +    if (!DeviceIoControl(hd, IOCTL_CDROM_READ_TOC, NULL, 0, &vcd->toc,
> > +             sizeof(CDROM_TOC), &dwBytesReturned, NULL)) {
>
> Hmm... it's fine that VCD won't work on win9x, but this means binaries
> won't work (or even compile) at all anymore on it unless vcd is manually
> and explicitly disabled.

Binaries will continue to work: DeviceIoControl exists on Win9x, too;
it simply doesn't provide the functionality to access CDROM.

> Currently GetProcAddress is used for that kind of function in other
> places IIRC.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6



More information about the MPlayer-dev-eng mailing list