public static Dictionary <IntPtr, List <UInt64> > GetAsUInt64(BMemory memory) { int dataSize = 4; Dictionary <IntPtr, byte[]> dictionary; bool bResult = memory.ReadMemory(out dictionary); Dictionary <IntPtr, List <System.UInt64> > outdictionary = new Dictionary <IntPtr, List <System.UInt64> >(); foreach (IntPtr key in dictionary.Keys) { byte[] b = dictionary[key]; List <System.UInt64> l = new List <System.UInt64>(); for (int i = 0; i < b.Length; i += dataSize) { UInt64 val = BitConverter.ToUInt64(b, i); l.Add(val); } outdictionary.Add(key, l); } return(outdictionary); }
public MainForm() { m_memory = null; InitializeComponent(); ResetUI(); }
public void RequestBindToProcess(Object sender, int processID) { if (IsMemoryObjectValid()) { m_memory.Release(); } m_memory = new BMemory(processID); ResetUI(); }
private void FillList() { List <Process> processes = BMemory.GetAllProcresses(true); foreach (Process process in processes) { string name = process.ProcessName; string id = process.Id.ToString(); ListViewItem lvi = new ListViewItem(name); lvi.SubItems.Add(id); listView1.Items.Add(lvi); } }