www.pudn.com > mysecP.rar > MemoryRW.h


// MemoryRW.h: interface for the CMemoryRW class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MEMORYRW_H__7F0DF48B_1CCE_45E8_8B1D_F538A4A58D6B__INCLUDED_) 
#define AFX_MEMORYRW_H__7F0DF48B_1CCE_45E8_8B1D_F538A4A58D6B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "MemShare.h" 
const int Max_MenLength=0x4000; 
const CString ShareName="GetData1"; 
 
class CMemoryRW   
{ 
public: 
	void SetMemory(long Address, short m_store); 
	void SetOnTrueAddress(BOOL flag); 
	unsigned short GetMemory(long Address); 
	unsigned short ReadMemory(long TrueAddress,long VirtualAddress, long ValueType); 
	void WriteMemory(long TrueAddress,long VirtualAddress, short m_store, long ValueType); 
	BOOL init(); 
	CMemoryRW(); 
    bool bTrueAddress; 
    LPSTR lpMsg; 
    CMemShare MemShare; 
    ULONG adsbase; 
	virtual ~CMemoryRW(); 
 
}; 
 
#endif // !defined(AFX_MEMORYRW_H__7F0DF48B_1CCE_45E8_8B1D_F538A4A58D6B__INCLUDED_)