While GetVolumeInformation() API is invoked for a fresh(not formatted) Blu-ray re writable(BD-RE) , it is failed with GetlastError() =23(Data error (cyclic redundancy check) ). I have used this function as show below
BOOL Ret = GetVolumeInformation( DriveLetter, VolumeLabel, MAX_PATH + 1, 0, 0, 0, 0, 0 ); if( 0 == Ret ) { // Here it returns 23 DWORD ErrCode = ::GetLastError(); }
Thanks, Renjith V R