C++封装进程内存相关操作函数源码分享下载
C++封装进程内存相关操作函数源码分享下载
下面是封装的函数介绍,具体的代码都放在下载的文件里面。
//打开、关闭函数
BOOL OpenByName(char *szProcessName);
BOOL OpenByPID(DWORD PID);
BOOL Terminate();
//读取函数
BYTE ReadByte(DWORD address);
WORD ReadWord(DWORD address);
DWORD ReadDword(DWORD address);
float ReadFloat(DWORD address);
double ReadDouble(DWORD address);
void ReadStr(DWORD address,char *Str,int MaxSize);
void ReadArray(DWORD address,int TypeLength,LPVOID ArrayAddress,int MaxSize);
//查找函数
DWORD FindByte(DWORD StartAddr,DWORD EndAddr,BYTE FindByte);
DWORD FindWord(DWORD StartAddr,DWORD EndAddr,WORD FindWord);
DWORD FindDword(DWORD StartAddr,DWORD EndAddr,DWORD FindDword);
DWORD FindFloat(DWORD StartAddr,DWORD EndAddr,float FindFloat);
DWORD FindDouble(DWORD StartAddr,DWORD EndAddr,double FindDouble);
DWORD FindString(DWORD StartAddr,DWORD EndAddr,char *FindString);
//写入函数
void WriteByte(DWORD address,BYTE data);
void WriteWord(DWORD address,WORD data);
void WriteDword(DWORD address,DWORD data);
void WriteFloat(DWORD address,float data);
void WriteDouble(DWORD address,double data);
void WriteStr(DWORD address,char *String);
void WriteData(DWORD address,LPVOID DataAddr,int size);
//远程线程相关
HANDLE CreateThread(DWORD FuncAddr,LPVOID lpParameter,DWORD *PID);
DWORD AllocMemory(int SIZE);
void FreeMemory(DWORD address,int size);
void WaitThreadEnd(HANDLE hThread);
回复查看下载:
**** Hidden Message *****
页:
[1]