std::string CWIN32Util::GetFirstOpticalDrive() { VECSOURCES vShare; std::string strdevice = "\\\\.\\"; CWIN32Util::GetDrivesByType(vShare, DVD_DRIVES); if(!vShare.empty()) return strdevice.append(vShare.front().strPath); else return ""; }
std::string CWin32StorageProvider::GetFirstOpticalDeviceFileName() { VECSOURCES vShare; std::string strdevice = "\\\\.\\"; GetDrivesByType(vShare, DVD_DRIVES); if(!vShare.empty()) return strdevice.append(vShare.front().strPath); else return ""; }