Пример #1
0
        public int ReadProcessMemory(IntPtr Address, int Length, out byte[] data)
        {
            byte[] buffer = new byte[Length];
            int    iReadCount;

            ProcessMemoryReaderApi.ReadProcessMemory(m_hpid, Address, buffer, Length, out iReadCount);
            data = buffer;
            return(iReadCount);
        }
Пример #2
0
        public byte[] ReadProcessMemory(IntPtr MemoryAddress, uint bytesToRead, out int bytesRead)
        {
            byte[] buffer = new byte[bytesToRead];
            IntPtr ptrBytesRead;

            ProcessMemoryReaderApi.ReadProcessMemory(m_hProcess, MemoryAddress, buffer, bytesToRead, out ptrBytesRead);
            bytesRead = ptrBytesRead.ToInt32();
            return(buffer);
        }