Exemplo n.º 1
0
            public override List <KeyValuePair <int, string> > ListAll()
            {
                DM = new Dmsoft();
                List <KeyValuePair <int, string> > result = new List <KeyValuePair <int, string> >();

                if (!DM.IsInit)
                {
                    result.Add(new KeyValuePair <int, string>(key: 0, value: "null"));
                    return(result);
                }
                string[] graphicModes = new string[] { "normal", "gdi", "gdi2", "dx2", "dx3", "dx.graphic.2d", "dx.graphic.2d.2", "dx.graphic.3d", "dx.graphic.3d.8", "dx.graphic.opengl", "dx.graphic.opengl.esv2", "dx.graphic.3d.10plus" };
                string[] attributes   = new string[] { "", " dx.public.active.api", "dx.public.active.message", "dx.public.hide.dll", "dx.public.graphic.protect", "dx.public.anti.api", "dx.public.prevent.block", "dx.public.inject.super" };
                int[]    modes        = new int[] { 0, 2, 101, 103, 11, 13 };

                GetHwnd getHwnd = new GetHwnd();

                if ((bool)getHwnd.ShowDialog())
                {
                    Hwd = getHwnd.ResultHwnd;
                    int graphicMode = getHwnd.ResultGraphicMode;
                    int attribute   = getHwnd.ResultAttribute;
                    int mode        = getHwnd.ResultMode;
                    if (DM.BindWindowEx(Hwd, graphicModes[graphicMode], "normal", "normal", attributes[attribute], modes[mode]) == 1)
                    {
                        IsInit = true;
                        result.Add(new KeyValuePair <int, string>(key: 0, value: Hwd.ToString() + "-" + graphicModes[graphicMode]));
                        return(result);
                    }
                }

                result.Add(new KeyValuePair <int, string>(key: 0, value: "null"));
                return(result);
            }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var dm = new Dmsoft();

            dm.MoveTo(100, 100);
        }