modify function to read float C#
问题 I found this function on the internet: [DllImport("kernel32.dll")] public static extern bool ReadProcessMemory(IntPtr hProcess, int lpBaseAddress, byte[] buffer, int size, int lpNumberOfBytesRead); public static int ReadAddress(string Process_Name, string Address_Offsets) { Process[] P; if ((P = Process.GetProcessesByName(Process_Name)).Length == 0) return -1; int Addy = -1; while (Address_Offsets.Contains(" ")) Address_Offsets = Address_Offsets.Replace(" ", " "); int Index = -1; while (