1
0

discInfo.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef NULLSOFT_DISCINFO_HEADER
  2. #define NULLSOFT_DISCINFO_HEADER
  3. #include <windows.h>
  4. // disc data array size (see decalrations in discInfo.cpp)
  5. #define DISC_DATA_COUNT 0x0009
  6. #define TEXT_BUFFER_SIZE 64
  7. class DiscInfo
  8. {
  9. public:
  10. DiscInfo(void);
  11. DiscInfo(const wchar_t *info);
  12. ~DiscInfo(void);
  13. public:
  14. BOOL SetStringInfo(const wchar_t *info);
  15. const wchar_t* GetStringInfo(void);
  16. DWORD GetMedium(void);
  17. DWORD GetMediumType(void);
  18. DWORD GetMediumFormat(void);
  19. BOOL GetProtectedDVD(void);
  20. BOOL GetErasable(void);
  21. DWORD GetTracksNumber(void);
  22. DWORD GetSectorsUsed(void);
  23. DWORD GetSectorsFree(void);
  24. void SetSerialNumber(int serialNumber);
  25. int GetSerialNumber(void);
  26. BOOL GetRecordable(void);
  27. const wchar_t* GetMediumText(void);
  28. const wchar_t* GetMediumTypeText(void);
  29. const wchar_t* GetMediumFormatText(void);
  30. const wchar_t* GetProtectedDVDText(void);
  31. const wchar_t* GetErasableText(void);
  32. const wchar_t* GetTracksNumberText(void);
  33. const wchar_t* GetSectorsUsedText(void);
  34. const wchar_t* GetSectorsFreeText(void);
  35. const wchar_t* GetRecordableText(void);
  36. protected:
  37. void ResetData(void);
  38. private:
  39. wchar_t *strData;
  40. int serialNum;
  41. wchar_t buffer[TEXT_BUFFER_SIZE];
  42. DWORD data[DISC_DATA_COUNT];
  43. };
  44. #endif // NULLSOFT_DISCINFO_HEADER