|
ReadProcessMemory(ProcessHandle, (IntPtr)slddl2, bytes, 4, out ptrBytesReaded);
int value74 = BitConverter.ToInt32(bytes, 0);//
ReadProcessMemory(ProcessHandle, (IntPtr)value74 + 0x4, bytes, 4, out ptrBytesReaded);
int value75 = BitConverter.ToInt32(bytes, 0);//
byte[] TargetByte2 = BitConverter.GetBytes(value75);
ReadProcessMemory(ProcessHandle, (IntPtr)value74 + 0x8, bytes, 4, out ptrBytesReaded);
int value71 = BitConverter.ToInt32(bytes, 0);//
byte[] TargetByte3 = BitConverter.GetBytes(value71);
ReadProcessMemory(ProcessHandle, (IntPtr)value74 + 0xC, bytes, 4, out ptrBytesReaded);
int value72 = BitConverter.ToInt32(bytes, 0);//
byte[] TargetByte4 = BitConverter.GetBytes(value72);
ReadProcessMemory(ProcessHandle, (IntPtr)value74 + 0x10, bytes, 4, out ptrBytesReaded);
int value73 = BitConverter.ToInt32(bytes, 0);//
byte[] TargetByte5 = BitConverter.GetBytes(value73);
string gg = System.Text.Encoding.GetEncoding(932).GetString(TargetByte2);
string gg1 = System.Text.Encoding.GetEncoding(932).GetString(TargetByte3);
string gg2 = System.Text.Encoding.GetEncoding(932).GetString(TargetByte4);
string gg3 = System.Text.Encoding.GetEncoding(932).GetString(TargetByte5);
string aa = gg + gg1 + gg2 + gg3;
各種アドレスを4バイトずつ足していき文字列を取得させています。
|