Beispiel #1
0
        // Token: 0x06000096 RID: 150
        private static IntPtr ParseProcess(string string_0, string string_1)
        {
            checked
            {
                IntPtr intPtr = Memory.CreateToolhelp32Snapshot(24u, (uint)Process.GetProcessesByName(string_0)[0].Id);
                IntPtr zero   = IntPtr.Zero;
                IntPtr result;
                if (intPtr == zero)
                {
                    result = zero;
                }
                else
                {
                    Memory.kKiURvoHFZukizJ structure = default(Memory.kKiURvoHFZukizJ);
                    structure.ONWwedZZuSlfT = (uint)Marshal.SizeOf <Memory.kKiURvoHFZukizJ>(structure);
                    if (Memory.Module32First(intPtr, ref structure))
                    {
                        while (structure.cuaUPxUKGKphwT.ToInt64() > 2147483647L || string.Compare(string_1, structure.PagqcqSGcV, true) != 0)
                        {
                            if (!Memory.Module32Next(intPtr, ref structure))
                            {
                                goto IL_A3;
                            }
                        }
                        return(structure.cuaUPxUKGKphwT);
                    }
IL_A3:
                    result = zero;
                }
                return(result);
            }
        }
Beispiel #2
0
 private static extern bool Module32First(IntPtr intptr_0, ref Memory.kKiURvoHFZukizJ kKiURvoHFZukizJ_0);