From 7787631c6ee37a489732c95cb0864422e3a3bdd1 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 12 Oct 2003 05:15:00 +0000 Subject: AT LAST!!! Windows 2k/XP CD reading works using raw ioctls!!!! HURRAY!!!!!!!! --- includes/cdreader.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'includes/cdreader.h') diff --git a/includes/cdreader.h b/includes/cdreader.h index 8ebe362..acf6765 100644 --- a/includes/cdreader.h +++ b/includes/cdreader.h @@ -1,11 +1,11 @@ #ifndef __CDREADER_H__ #define __CDREADER_H__ -#ifdef __cplusplus #include #include #include #include +#include "cdabstract.h" class cdreader : public Handle { public: @@ -15,6 +15,9 @@ class cdreader : public Handle { virtual bool CanWrite() const; virtual bool CanRead() const; virtual bool CanSeek() const; +#if defined (_MSC_VER) || defined (__MINGW32__) + virtual void close() throw (GeneralException); +#endif virtual ssize_t read(void *buf, size_t count) throw (GeneralException); virtual off_t seek(off_t, int = SEEK_SET) throw (GeneralException); virtual String GetName() const; @@ -25,9 +28,9 @@ class cdreader : public Handle { private: String n; int sector; +#if defined (_MSC_VER) || defined (__MINGW32__) + HANDLE hF; +#endif }; -#else -#error This only works with a C++ compiler -#endif #endif -- cgit v1.2.3