-1

基本的に、これは私が要求しているすべてのバイトを返すわけではありません。

// ReadBytes Method
byte[] ReadBytes(uint address, int len)
{
    int bytesread = 0;
    byte[] output = new byte[len];
    ReadProcessMemory(HO_Handle, (IntPtr)address, output, len, out bytesread);
    return ouput; // by the time we get here, bytesread == 0x0031E000
}

// Call
byte[] region = ReadBytes(0x0C000000, 0x08000000);

なぜこれが機能しないのか、どうすれば修正できるのかについてのアイデアはありますか?

4

2 に答える 2

0

これが機能しない理由についてはまだ原因がわかりませんが、PCを再起動したところ、正常に機能するようになりました。Windows は何らかの理由で動作していたに違いありません。

于 2015-03-31T21:24:39.357 に答える