isle-portable/LEGO1/omni/include/mxio.h

33 lines
661 B
C
Raw Normal View History

#ifndef MXIO_H
#define MXIO_H
2023-10-24 19:38:27 -04:00
#include "mxtypes.h"
// mmsystem.h requires inclusion of windows.h before
// clang-format off
#include <windows.h>
#include <mmsystem.h>
2023-10-24 19:38:27 -04:00
// clang-format on
// SIZE 0x48
2023-10-24 19:38:27 -04:00
class MXIOINFO {
public:
2023-10-24 19:38:27 -04:00
MXIOINFO();
~MXIOINFO();
2023-10-24 19:38:27 -04:00
MxU16 Open(const char*, MxULong);
MxU16 Close(MxLong);
MxLong Read(void*, MxLong);
2023-11-22 02:54:08 -05:00
MxLong Seek(MxLong, MxLong);
2023-10-24 19:38:27 -04:00
MxU16 SetBuffer(char*, MxLong, MxLong);
MxU16 Flush(MxU16);
MxU16 Advance(MxU16);
MxU16 Descend(MMCKINFO*, const MMCKINFO*, MxU16);
2023-10-24 19:38:27 -04:00
// NOTE: In MXIOINFO, the `hmmio` member of MMIOINFO is used like
// an HFILE (int) instead of an HMMIO (WORD).
MMIOINFO m_info;
};
#endif // MXIO_H