Exemplo n.º 1
0
    public bool method_6()
    {
        this.method_5(new List <GClass876.GStruct3>());
        GClass876.GStruct1 gstruct = default(GClass876.GStruct1);
        GClass876.GetSystemInfo(out gstruct);
        this.intptr_0 = gstruct.intptr_0;
        this.intptr_1 = gstruct.intptr_1;
        long   num  = (long)this.intptr_0;
        long   num2 = (long)this.intptr_1;
        IntPtr intPtr;

        this.method_3(intPtr = GClass876.OpenProcess(5176, false, this.method_0()));
        IntPtr intPtr2 = intPtr;

        GClass876.GStruct3 gstruct2 = default(GClass876.GStruct3);
        if (GClass876.smethod_0(intPtr2))
        {
            num2 = Math.Min(2147483647L, num2);
        }
        this.intptr_1 = (IntPtr)num2;
        int num3 = 0;

        while (num < num2)
        {
            int num4;
            gstruct2 = GClass876.smethod_2(intPtr2, this.intptr_0, out num4);
            if (num4 == 0)
            {
                if (gstruct2.int_1 == 4 && gstruct2.State == 4096)
                {
                    this.method_4().Add(gstruct2);
                }
                num          += gstruct2.long_0;
                this.intptr_0 = new IntPtr(num);
                num3++;
            }
            else
            {
                if (num3 == 0)
                {
                    throw new Win32Exception(num4);
                }
                return(true);
            }
        }
        return(true);
    }
Exemplo n.º 2
0
 public static extern void GetSystemInfo(out GClass876.GStruct1 gstruct1_0);