Joerg-Cyril.Hoehle(a)t-systems.com a écrit :
Hi,
Eric Pouech wrote:
did you test the 16 => 32 bit conversion for the MCI_ALL_DEVICE ?
It's good you asked. Upon closer inspection, MCI_Sysinfo appears to behave differently. I'd say it's even a bug in MS that setting SYSINFO_PARMS.wDeviceType = MCI_ALL_DEVICE_ID is not recognized! Only sendCommand(MCI_ALL_DEVICE_ID, MCI_SYSINFO ...) appears usable to obtain the functionality of "sysinfo all ..." :-(
I'll supersede the patch ASAP. Grr, that's not going to simplify the parser.
Regards, Jögr Höhle
but does SYSINFO_PARMS.wDeviceType = (WORD)(DWORD)MCI_ALL_DEVICE_ID; work better ? if yes, I'd be convinced for a bug in native winmm, missing a (WORD) cast somewhere... A+ -- Eric Pouech "The problem with designing something completely foolproof is to underestimate the ingenuity of a complete idiot." (Douglas Adams)