mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 15:21:15 +00:00
* MXIOINFO: 100% * ~MXIOINFO: 100% * Close: 100% * Open: 100% * SetBuffer: 80% (matching except register allocation) * Something: 96% (matching except == comparison args swapped) * Read: 59% (having trouble with the loop)
29 lines
711 B
C++
29 lines
711 B
C++
#ifndef MXIOINFO_H
|
|
#define MXIOINFO_H
|
|
|
|
#include <windows.h>
|
|
|
|
#include "mmsystem.h"
|
|
|
|
class MXIOINFO
|
|
{
|
|
public:
|
|
MXIOINFO();
|
|
__declspec(dllexport) ~MXIOINFO();
|
|
|
|
unsigned short Open(const char *filename, DWORD fdwOpen);
|
|
unsigned short Close(long arg);
|
|
LONG Seek(LONG lOffset, int iOrigin);
|
|
unsigned long Read(HPSTR pch, LONG cch);
|
|
unsigned short SetBuffer(LPSTR pchBuffer, LONG cchBuffer, UINT fuBuffer);
|
|
unsigned short Descend(LPMMCKINFO pmmcki, const MMCKINFO *pmmckiParent, UINT fuDescend);
|
|
unsigned short Flush(int arg);
|
|
unsigned short Something(UINT flags);
|
|
|
|
inline LONG GetCurrentOffset() { return _llseek((HFILE)m_info.hmmio, 0, SEEK_CUR); }
|
|
|
|
MMIOINFO m_info;
|
|
};
|
|
|
|
#endif // MXIOINFO_H
|