[mythtv] Ticket #6822: win32 patch to display drive letter instead of the devicePath when having multiple optical drives

Jonathan Martens jonathan at snetram.nl
Thu Aug 13 09:14:27 UTC 2009


On 13-8-2009 11:06, Nigel Pearson wrote:
>> Which in my case on Windows is like above: E:\ (E:\), F:\ (F:\) even
>> without anything patched IIRC.
>
> I suspect that must be your reimplemented class.
> ('Found CD' isn't in the current code)

True. Just checked, some debug code... :blush:

> You might need to do like we did on Mac OS X,
> which basically interfaces with a system daemon
> to use it's low-level monitoring code.

I will have a look at it.

> Maybe one of these Windows Services will do it for you?
> IMAPI CD-Burning COM Service
> Logical Disk Manager
> Plug and Play
> Removable Storage
> Universal Plug and Play Device Host

Perhaps, I so far focussed on DeviceIoControl as that seems to be fairly 
similar to ioctl on *nix environments... I will have a look at it if I 
can find the time the coming days.

>> If there is some interest I can submit my in some places hacky code as
>> a patch either to this list or to trac, just let me know.
>
> Maybe email it to me?

No problem, will do it in a moment, but it is hacky to say the least. I 
was unaware of any of the core devs was also minding the windows build, 
nice that some one is.

Kind regards,

Jonathan


More information about the mythtv-dev mailing list