Originally Posted by
h4x0rswln is back
<,< helpful.
anyway, i got dev-c++, i'm catching on really fast. i'm trying to figure out if i can run a program using a c++ program, i know you can, but how.
for instance, the program would say "to run firefox continue to next step" then do that press any key to continue, and firefox will open, and the program will say "firefox has open, press any key to close the program."
because that's the first step to coding hacks that auto inject when you open the program, aside from coding the hacks themselves of course <,<
Code:
#include <windows.h>
int main()
{
ShellExecute(NULL,
"open",
"C:\\Program Files\\Mozilla Firefox\\firefox.exe",
NULL,
NULL,
SW_SHOW
);
}
I'm sure you can guess exactly what that does. For more info on ShellExecute and pretty much every other function you can use MSDN library.
ShellExecute Function()