I know this conversion works, I've used it in the past. Here is an example:
Code: Select all
public float ReadSingle(int Address)
{
byte[] buffer = new byte[4];
ReadProcessMemory(m_hProcess, new IntPtr(Address + baseaddress), buffer, 4, out Out);
return Convert.ToSingle(buffer);
}