mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
initial checkin
This commit is contained in:
49
MAC_SDK/Source/Shared/WinFileIO.h
Normal file
49
MAC_SDK/Source/Shared/WinFileIO.h
Normal file
@@ -0,0 +1,49 @@
|
||||
#ifdef IO_USE_WIN_FILE_IO
|
||||
|
||||
#ifndef _winfileio_h_
|
||||
#define _winfileio_h_
|
||||
|
||||
#include "IO.h"
|
||||
|
||||
class CWinFileIO : public CIO
|
||||
{
|
||||
public:
|
||||
|
||||
// construction / destruction
|
||||
CWinFileIO();
|
||||
~CWinFileIO();
|
||||
|
||||
// open / close
|
||||
int Open(const wchar_t * pName);
|
||||
int Close();
|
||||
|
||||
// read / write
|
||||
int Read(void * pBuffer, unsigned int nBytesToRead, unsigned int * pBytesRead);
|
||||
int Write(const void * pBuffer, unsigned int nBytesToWrite, unsigned int * pBytesWritten);
|
||||
|
||||
// seek
|
||||
int Seek(int nDistance, unsigned int nMoveMode);
|
||||
|
||||
// other functions
|
||||
int SetEOF();
|
||||
|
||||
// creation / destruction
|
||||
int Create(const wchar_t * pName);
|
||||
int Delete();
|
||||
|
||||
// attributes
|
||||
int GetPosition();
|
||||
int GetSize();
|
||||
int GetName(wchar_t * pBuffer);
|
||||
|
||||
private:
|
||||
|
||||
HANDLE m_hFile;
|
||||
wchar_t m_cFileName[MAX_PATH];
|
||||
BOOL m_bReadOnly;
|
||||
};
|
||||
|
||||
|
||||
#endif //_winfileio_h_
|
||||
|
||||
#endif //IO_USE_WIN_FILE_IO
|
||||
Reference in New Issue
Block a user