Question about nsdiCapabilities

vbimport

#1

in VC6, if i wanna check whether the drive suppoer underrun protection
is this correct ?

if (nsdiDevice->nsdiCapabilities && NSDI_BUF_UNDERRUN_PROT)

if it is correct, is that mean I can do this to see whether the drive support DAO ?

if (nsdiDevice->nsdiCapabilities && NSDI_DAO)

Thanks in advance

:o


#2

No, it is not correct. You need to use bitwise AND operator, which is &, not &&. The latter is logical AND operator.