Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
GNR092 committed Feb 10, 2017
1 parent 407cb1b commit e01f9f9
Show file tree
Hide file tree
Showing 13 changed files with 687 additions and 316 deletions.
47 changes: 47 additions & 0 deletions AutoClosingMessageBox.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Creado por SharpDevelop.
* Usuario: GNR092
* Fecha: 06/02/2017
* Hora: 08:04 p.m.
*
* Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar
*/
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace SecureGameGuard
{
public class AutoClosingMessageBox
{
System.Threading.Timer _timeoutTimer;
string _caption;

AutoClosingMessageBox(string text, string caption, int timeout)
{
_caption = caption;
_timeoutTimer = new System.Threading.Timer(OnTimerElapsed,
null, timeout, System.Threading.Timeout.Infinite);
MessageBox.Show(text, caption, MessageBoxButtons.OK, MessageBoxIcon.Information);
}

public static void Show(string text, string caption, int timeout)
{
new AutoClosingMessageBox(text, caption, timeout);
}

private void OnTimerElapsed(object state)
{
IntPtr mbWnd = FindWindow(null, _caption);
if (mbWnd != IntPtr.Zero)
SendMessage(mbWnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero);
_timeoutTimer.Dispose();
}

const int WM_CLOSE = 0x0010;
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);
}
}
10 changes: 9 additions & 1 deletion Configs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
using System;
/*
* Creado por SharpDevelop.
* Usuario: GNR092
* Fecha: 06/02/2017
* Hora: 08:04 p.m.
*
* Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar
*/
using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

Expand Down
41 changes: 41 additions & 0 deletions DataEncript.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Creado por SharpDevelop.
* Usuario: GNR092
* Fecha: 06/02/2017
* Hora: 08:04 p.m.
*
* Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar
*/
using System.Text;

namespace SecureGameGuard
{
public class DataEncript
{
public static byte[] DataEncrip(int num0)
{

byte[] encryted =Encoding.Unicode.GetBytes(num0.ToString());

return encryted;
}

public static int DataDesencrip(byte[] num0)
{
string str = string.Empty;
int num1 = 0;
try
{
str = Encoding.Unicode.GetString(num0);
int.TryParse(str, out num1);
return num1;
}
catch
{

return -1;
}

}
}
}
31 changes: 31 additions & 0 deletions DefaultList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Creado por SharpDevelop.
* Usuario: GNR092
* Fecha: 06/02/2017
* Hora: 08:04 p.m.
*
* Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar
*/
using System.Collections.Generic;

namespace SecureGameGuard
{
public class DList
{
public List<string> Default = new List<string>();
public DList()
{
Default.Add("Cheat Engine");
Default.Add("Engine");
Default.Add("Cheat");
Default.Add("CheatEngine");
Default.Add("Nopde");
Default.Add("Jakes");
Default.Add("Hack");
Default.Add("Hax");
Default.Add("Poke");
Default.Add("ArtMoney");
Default.Add("ollydbg");
}
}
}
16 changes: 16 additions & 0 deletions Enums.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Creado por SharpDevelop.
* Usuario: GNR092
* Fecha: 06/02/2017
* Hora: 08:04 p.m.
*
* Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar
*/
namespace SecureGameGuard
{
public enum TypeInvoke
{
Text,
progressbar,
}
}
Loading

0 comments on commit e01f9f9

Please sign in to comment.