Beispiel #1
0
    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);
    }
Beispiel #2
0
        public MainForm()
        {
            m_memory = null;

            InitializeComponent();
            ResetUI();
        }
Beispiel #3
0
        public void RequestBindToProcess(Object sender, int processID)
        {
            if (IsMemoryObjectValid())
            {
                m_memory.Release();
            }

            m_memory = new BMemory(processID);
            ResetUI();
        }
Beispiel #4
0
        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);
            }
        }