Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
61
Src/Plugins/Library/ml_disc/discInfo.h
Normal file
61
Src/Plugins/Library/ml_disc/discInfo.h
Normal file
|
@ -0,0 +1,61 @@
|
|||
#ifndef NULLSOFT_DISCINFO_HEADER
|
||||
#define NULLSOFT_DISCINFO_HEADER
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
|
||||
// disc data array size (see decalrations in discInfo.cpp)
|
||||
#define DISC_DATA_COUNT 0x0009
|
||||
|
||||
#define TEXT_BUFFER_SIZE 64
|
||||
|
||||
|
||||
|
||||
class DiscInfo
|
||||
{
|
||||
public:
|
||||
DiscInfo(void);
|
||||
DiscInfo(const wchar_t *info);
|
||||
~DiscInfo(void);
|
||||
|
||||
public:
|
||||
|
||||
BOOL SetStringInfo(const wchar_t *info);
|
||||
const wchar_t* GetStringInfo(void);
|
||||
|
||||
DWORD GetMedium(void);
|
||||
DWORD GetMediumType(void);
|
||||
DWORD GetMediumFormat(void);
|
||||
BOOL GetProtectedDVD(void);
|
||||
BOOL GetErasable(void);
|
||||
DWORD GetTracksNumber(void);
|
||||
DWORD GetSectorsUsed(void);
|
||||
DWORD GetSectorsFree(void);
|
||||
void SetSerialNumber(int serialNumber);
|
||||
int GetSerialNumber(void);
|
||||
|
||||
BOOL GetRecordable(void);
|
||||
|
||||
const wchar_t* GetMediumText(void);
|
||||
const wchar_t* GetMediumTypeText(void);
|
||||
const wchar_t* GetMediumFormatText(void);
|
||||
const wchar_t* GetProtectedDVDText(void);
|
||||
const wchar_t* GetErasableText(void);
|
||||
const wchar_t* GetTracksNumberText(void);
|
||||
const wchar_t* GetSectorsUsedText(void);
|
||||
const wchar_t* GetSectorsFreeText(void);
|
||||
|
||||
const wchar_t* GetRecordableText(void);
|
||||
|
||||
protected:
|
||||
void ResetData(void);
|
||||
|
||||
private:
|
||||
wchar_t *strData;
|
||||
int serialNum;
|
||||
wchar_t buffer[TEXT_BUFFER_SIZE];
|
||||
DWORD data[DISC_DATA_COUNT];
|
||||
|
||||
};
|
||||
|
||||
#endif // NULLSOFT_DISCINFO_HEADER
|
Loading…
Add table
Add a link
Reference in a new issue