I want my program to execute a specific function everytime the form is run. The function would be to get the baseAdress of a process. Current code:
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Adicionar());
if (getmodule()) {
MessageBox.Show(Convert.ToString(baseAdress)); //Dunno if this is going to work but it's just to see if it's getting a baseAdress;
adress d = new adress();
d.Adress = (0x6C7FC + baseAdress + 0xA82020);
}
}
static bool getmodule(){ .... }
how would that be possible to make?