Bug in my code or in V6.3.0.5

vbimport

#1

Hi,
I couldn’t that verify:

NERO_MEDIA_TYPE
Media=(NERO_MEDIA_TYPE )(MEDIA_CD | MEDIA_DVD_ANY);

  • get available recorders
    pndiDeviceInfos = NeroGetAvailableDrivesEx (Media, NULL);

-for WORM’s (CDR is in the recorder) I’ll get nsdiWriteSpeeds.nsiNumSupportedSpeeds==0
with version 6.3.0.5 installed.

With version 6.6.0.8 it’s ok

if I use
NERO_MEDIA_TYPE Media=MEDIA_CD;
then it’s also with version 6.3.0.5 ok.

wehre is the bug?

bye, Holger.


#2

The bug is in your code ;-).
NeroGetAvailableDrivesEx() method specifies NERO_MEDIA_TYPE (not NERO_MEDIA_SET) as first parameter. Therefore only one media type can be passed to this call. Even either MEDIA_CD or MEDIA_DVD_ANY can be used.