用ToolsHelp之类的函数,可以查询到正在运行中的进程的句柄及起始地址,如CreateSnapToolsHelp函数

解决方案 »

  1.   


    read/writeprocessmemoryBOOL ReadProcessMemory(    HANDLE hProcess, // handle of the process whose memory is read  
        LPCVOID lpBaseAddress, // address to start reading
        LPVOID lpBuffer, // address of buffer to place read data
        DWORD nSize, // number of bytes to read
        LPDWORD lpNumberOfBytesRead  // address of number of bytes read
       );BOOL WriteProcessMemory(    HANDLE hProcess, // handle to process whose memory is written to  
        LPVOID lpBaseAddress, // address to start writing to 
        LPVOID lpBuffer, // pointer to buffer to write data to
        DWORD nSize, // number of bytes to write
        LPDWORD lpNumberOfBytesWritten  // actual number of bytes written 
       );