blob: ac8a6dedcd7e90e44abbf533a86f4ba5f6eac1d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include "StdAfx.h"
//-----------------------------------------------------------------
// MMIO Objects
// C++ Source - MMIO.cpp
//-----------------------------------------------------------------
//-----------------------------------------------------------------
// Inclusions
//-----------------------------------------------------------------
#include "../common.h"
//-----------------------------------------------------------------
#include "MMIO.h"
//-----------------------------------------------------------------
// MFC Debugging Support
//-----------------------------------------------------------------
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//-----------------------------------------------------------------
// CMMIO Public Methods
//-----------------------------------------------------------------
void CMMIO::Open(const char* pszFileName, DWORD dwOpenFlags)
{
ASSERT(AfxIsValidString(pszFileName));
m_hmmio = mmioOpen((char*)pszFileName, NULL, dwOpenFlags);
}
void CMMIO::Open(CMMMemoryIOInfo &mmioinfo)
{
m_hmmio = mmioOpen(NULL, &mmioinfo, MMIO_READWRITE);
}
|