summaryrefslogtreecommitdiff
path: root/src/T2DLL/MMIO.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/MMIO.h54
1 files changed, 54 insertions, 0 deletions
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&);
+};