From 37e364b2c6cc7487a1c888d256a73e5337bb7189 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Jun 2023 00:50:34 +0100 Subject: initial commit --- src/T2DLL/MMIO.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/T2DLL/MMIO.h (limited to 'src/T2DLL/MMIO.h') diff --git a/src/T2DLL/MMIO.h b/src/T2DLL/MMIO.h new file mode 100644 index 0000000..11303fa --- /dev/null +++ b/src/T2DLL/MMIO.h @@ -0,0 +1,54 @@ +#pragma once +#include "common.h" + +class CMMChunk { +protected: + CMMChunk(); +public: + CMMChunk& operator=(const CMMChunk&); +}; +class CMMIdChunk { +public: + CMMIdChunk& operator=(const CMMIdChunk&); + CMMIdChunk(char, char, char, char); + CMMIdChunk(const char*, unsigned int); +}; +class CMMTypeChunk { +public: + CMMTypeChunk& operator=(const CMMTypeChunk&); + CMMTypeChunk(char, char, char, char); + CMMTypeChunk(const char*, unsigned int); +}; +class CMMIOInfo { +public: + CMMIOInfo& operator=(const CMMIOInfo&); + CMMIOInfo(); +}; +class CMMMemoryIOInfo { +public: + CMMMemoryIOInfo& operator=(const CMMMemoryIOInfo&); + CMMMemoryIOInfo(long, unsigned long); + CMMMemoryIOInfo(char*, long, unsigned long); +}; +class CMMIO { +public: + virtual ~CMMIO(); + CMMIO(); + CMMIO(HMMIO); + CMMIO(const char*, unsigned long); + CMMIO(CMMMemoryIOInfo&); + unsigned int Close(unsigned int); + long Read(char*, long); + unsigned int Ascend(CMMChunk&, unsigned int); + unsigned int Descend(CMMChunk&, unsigned int); + unsigned int Descend(CMMChunk&, CMMChunk&, unsigned int); + long Seek(long, int); + long SendMessageA(unsigned int, long, long); + unsigned int SetBuffer(char*, long, unsigned int); + long Write(const char*, long); + unsigned int GetInfo(CMMIOInfo&, unsigned int); + unsigned int SetInfo(CMMIOInfo&, unsigned int); + unsigned int Advance(CMMIOInfo&, unsigned int); + void Open(const char*, unsigned long); + void Open(CMMMemoryIOInfo&); +}; -- cgit v1.2.3